1

I have to display a user entered city in a google map. I find the city ok with GClientGeocoder.getLatLng(address:String, callback:function) but i also need to set the zoom level so the city fits the map.

I found getBoundsZoomLevel(bounds:GLatLngBounds, viewSize:GSize) but i don't know how to get the bounds:GLatLngBounds for the city. Any ideas?

1 Answer 1

0

You can try using: setCenter(center, zoom?, type?)

Where center is the center point, zoom is your desired zoom level and type is optional.

1
  • Yes but the problem is I don't know the zoom level.
    – calin
    Feb 28, 2011 at 8:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.