Please note:
This question is very similar to this one I found on stackoverflow.
Google Maps v3 ImageMapType Prevent Wrapping
However, the above question and answer did not work for my example / issue as I need to be able to view all of my image at any zoom level and more importantly i need the drawing tools to work correctly.
My Scenario:
I have a custom google map using ImageMapType
, it also has the DrawingManager
library and tools.
My issue:
At first glance all works nicely, however if you are to draw any markers or polygons and then pan the map the markers / polygons repeat or move across the area of map in view.
The same issue occurs when drawing large polygons on the map, as you are drawing the polygon, you will notice the line you are drawing will suddenly snap to the wrong side of your polygon.
My question:
How do I go about preventing the wrapping issues so that all of the markers do not move, or duplicate, and so that the drawing tools work without snapping to the other side of your polygon?
Online example:
http://jsbin.com/ecujug/5/edit#javascript,live
Video of the issues:
https://dl.dropbox.com/u/14037764/Development/stackoverflow/map-drawing/issue.html
Desired Effect: