So I'm a bit confused about an interesting oddity that I'm sure has an explanation. I have a workaround, but am curious nonetheless.
I setup a custom tile map that the user can switch to. It has only two zoom levels (17 and 18). The original image is massive (3000-something px x 3000-something px), so I resized it to fit two grids - one at that's scaled to 512x512 and another that fits at 1024x1024. I then cut up the tiles and all works great. To make sure they were lined up, I placed a marker at a precise point in the top-left corner at zoom 17 and retrieved the lat/lng. I made sure that at zoom 18, the marker shows up at the exact same point on the tiles using the exact same lat/lng. The custom map requires a bunch of markers throughout the map that appear at both zoom levels. In a previous project using only the goolge map, I had to make sure that each time I zoom, I reset the markers at their designated lat/lng because they never seemed to be at the right point when zooming in. i.e. google map's tiles didn't appear to always line up at each zoom level. So I used the same code in this scenario as well. But what I'm finding is that the markers at zoom 18 still aren't showing up at the correct spots. An alternative is to have a separate lat/lng for each marker at each zoom level (since actual lat/lng location really isn't all that important in this case). But my question is what exactly is causing this? Are there any ways to make sure that one lat/lng will always be accurate at each zoom level? -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
