On Aug 6, 9:31 am, ss ss <[email protected]> wrote: > Dear Rossko, > Thank you. Yes I manage to deal with the map.setCenter > the only problem how in the begining can I set a zoom level.
If you know the zoom level you want, it is the second argument to setCenter: http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GMap2.setCenter If you want to center and zoom on the displayed markers: map.setCenter(bounds.getCenter(),map.getBoundsZoomLevel(bounds)) http://groups.google.com/group/google-maps-api/search?hl=en&group=google-maps-api&q=map.setCenter(bounds.getCenter(),map.getBoundsZoomLevel(bounds))&qt_g=Search+this+group Or see this page of Mike Williams' tutorial: The Basics - Part 14 Fitting the map zoom to the data http://econym.org.uk/gmap/basic14.htm -- Larry > > On Fri, Aug 6, 2010 at 11:57 PM, Rossko <[email protected]> wrote: > > > How to overcome the shadow? > > > If you don't want a shadow, don't set one. From the same tutorial - > >http://econym.org.uk/gmap/custom.htm > > > > Another thing each time I update a point on the map I would like to check > > if > > > the point in the current view if not I want the map to be zoom and centre > > > based on the new lat,long. > > > Write some code to do that. At the end of whatever you do to "update > > a point", get the bounds of the current map and see if your point of > > interest is inside them. > > The documentation shows some useful methods > > .getBounds() > > >http://code.google.com/apis/maps/documentation/javascript/v2/referenc... > > .containsLatLng() > > >http://code.google.com/apis/maps/documentation/javascript/v2/referenc... > > .setCenter() > > >http://code.google.com/apis/maps/documentation/javascript/v2/referenc... > > > Thank you. > > > > On Fri, Aug 6, 2010 at 3:51 PM, Rossko <[email protected]> > > wrote: > > > > > The problem now for each lat long I am want to show the location on > > my > > > > > page. I dont know how to apply my own image to represent the full > > > > > route. How can I do that ? > > > > > Example > > > >http://econym.org.uk/gmap/basic16.htm > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Google Maps API" group. > > > > To post to this group, send email to [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]<google-maps-api%2Bunsubscribe@ > > > > googlegroups.com> > > <google-maps-api%2bunsubscr...@googlegroups.com> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-maps-api?hl=en.-Hide quoted text > > - > > > > - Show quoted text - > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Maps API" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-maps-api%2Bunsubscribe@ > > googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-maps-api?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Maps API" 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-api?hl=en.
