4

Since workers do not have access to window or DOM elements, is it possible to have multiple web workers doing stuff on the same google maps instance?

The use case: a real-time map visualisation where each worker would plot and move a marker (or set of markers).

ksiomelo
  • 1,878
  • 1
  • 33
  • 38
  • I can't see why not - why don't you try it? –  Feb 08 '14 at 23:13
  • Haven't tried but I think you can access map instance but cannot move markers on the map, since it is DOM access. – allenhwkim Feb 09 '14 at 06:00
  • How can I access the map instance from multiple workers at first? Using transferable objects might not even be doable because they are no longer available once they are passed to the worker context. Is there anything like lockers? – ksiomelo Feb 09 '14 at 09:31
  • possible duplicate of [What can I use with Web Workers?](http://stackoverflow.com/questions/7495227/what-can-i-use-with-web-workers) – Steve Jun 09 '15 at 01:53

0 Answers0