As I was planning for the workaround: Is it possible that when users switch to road map view / satellite view, the marker is switched to a different location and the view is re-centred?
There is no map type switched event in v3 as far as I know, so I can't write an event handler to handle what is going to happen when the map type is switched. Not that I am lazy or what, but I think I'd like some guide/hint on how to build a workaround with v3. I am not so familiar with v3 after all. Thank you for everyone's help. On Jul 11, 10:00 pm, "geocode...@gmail.com" <geocode...@gmail.com> wrote: > On Jul 11, 6:28 am, SCCY <samuelcyc...@gmail.com> wrote: > > > Please compare the following two > > urls:http://maps.google.com.hk/maps?q=23.1048,113.7581+(hcg+road+map)&t=m&...)... > > > The first url is aroadmapand the second url is asatellitemap. > > They point to the same point where I want the marker to point to, but > > you may have noticed the lat and long values of the two urls are > > different! > > > Hmmm... still no clue about this! > > http://www.geocodezip.com/GenericMapBrowser.asp?filename=SCCY.xml > > As Pil said, either theroador thesatellitetiles (or both) are > misaligned. If you search the v2 group, some workarounds were posted > for this issue. They would need to be translated to v3. > > -- Larry > > > > > > > On Jul 10, 2:16 pm, SCCY <samuelcyc...@gmail.com> wrote: > > > > Hello, I am trying out the new API V3 at the moment. For trying out, I > > > used a pair of Lat Long values to center and put a marker on the > > > Google Maps. With some help from the tutorial, it works OK... > > > generally. > > > > However when I change themaptype, I notice that, given the same lat > > > and long values, the marker doesn't point exactly the same place for > > > both RoadMap and SatelliteMap. > > > > Let's take an example: LatLng(23.1075, 113.7527) > > > > I want it to point to where it shows on theSatelliteMap, but when I > > > switch toRoadMapview, the marker seems to be pointing somewhere a > > > few streets away. It's quite obvious if you compare the relative > > > position of the marker and nearby roads/river. > > > > Is it something I have done wrong or is it a problem with the Google > > >Map'stiles? What should I do to make bothmaptypes matching the > > > location where I want to place my marker?- Hide quoted text - > > > - Show quoted text - -- 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 google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.