ImageMapType doesn't display image tiles correctly for map x coordinates outside of 0..(1 << zoom). For example, if you position the international date line in the middle of the map, image tiles are not applied west of the date line.
You can see this effect in a different case as follows: 1. Load http://code.google.com/apis/maps/documentation/javascript/examples/maptype-traffic.html. Initially you'll see a traffic overlay centered on San Francisco. 2. Zoom out as much as possible. You'll see multiple copies of the continents. 3. Zoom in on the leftmost spot on the map representing San Francisco, to the same level as initially displayed in step 1. The overlay is no longer visible. 4. If you reverse the steps you can again see the overlay. It appears that negative x and y values are passed to getTileUrl() west of the date line. Converting to appropriate coordinates for the tile URL (by coord.x = coord.x & ((1 << zoom)-1);) doesn't help. >From experimenting with my own application, which has translucent tiles, it looks like the negative-coordinate tiles are applied repeatedly in the wrong place. Hope you can fix this soon--I suspect it may be not too hard to fix. --Jim PS Same behavior when I specify "v=3" for the map version on <script> or not. PPS You can see negative x/y coordinates and x/y values > (1 << zoom) in http://code.google.com/apis/maps/documentation/javascript/examples/maptype-base.html -- 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.
