Hi, Thanks a lot for the code. It worked perfectly well.
On Jan 26, 3:08 pm, Alchemy Code <[email protected]> wrote: > Hi, > > you can do something like this: > > var bounds = map.getBounds() ; > > GEvent.addListener(map,'mousemove',function(point) > { > > if(point.x >=bounds.getNorthEast().x-0.6){ > > map.setCenter(new GLatLng(map.getCenter().y, map.getCenter > ().x+0.1)); > > bounds = map.getBounds() ; > }else > if (point.x<=bounds.getSouthWest().x+0.6){ > > map.setCenter(new GLatLng(map.getCenter().y, map.getCenter > ().x-0.1)); > > bounds = map.getBounds() ; > } > else > if(point.y >=bounds.getNorthEast().y-0.6){ > > map.setCenter(new GLatLng(map.getCenter().y+0.1, > map.getCenter().x)); > > bounds = map.getBounds() ; > }else > if (point.y<=bounds.getSouthWest().y+0.6){ > > map.setCenter(new GLatLng(map.getCenter().y-0.1, > map.getCenter().x)); > > bounds = map.getBounds() ; > } > }); > > } > > and here's an example:http://blog.alchemycode.pl/demo/google-maps-scroll/ > > On 25 Sty, 13:17, Hari <[email protected]> wrote: > > > Hi Mike, > > > It is very similar to what is my requirement. But in my case, the > > image of the marker is supposed to change as per the course of the > > moving object. > > > I did find this example but since I am not very well verse in java > > script; found it hard to implement. > > > I am just trying to know if there are any other approaches other than > > the one given in above link for implementing track auto-follow. > > > On Jan 25, 2:48 pm, ProbablyMike <[email protected]> wrote: > > > > Would any of the car trip functions in the "Fun Stuff" section on this > > > page be of any use?http://econym.org.uk/gmap/ -- 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.
