Google map: map.setCenter(latLng, zoomLevel)

Recently i am playing with Google map. it is really fun. i am thinking i will share my experience through my blog.

problem: i want to set a center point
answer: you can use map.setCenter(new GLatLng(35.746512259918504,-42.1875), 2);
here 35.xxx is lat, -42.xx is lng  and 2 is zoom level.

how to use:

1. you can use “setCenter” when you instantiating an map object. for example:
var map = new GMap2(…);
map.setCenter(..);

2. you can use after completing your initial process. for example:
setCenter after loading marker from GDowloadUrl.

best of luck :)

Advertisement

2 responses to “Google map: map.setCenter(latLng, zoomLevel)

  1. nice to see that u are now involved with Google:D and playing with longi-lati around the world.

  2. geo tagging will be one of the fastest growing services in the next few years, i believe. everything and everyone belongs somewhere, and we have based our whole company idea upon this fact. the sooner we can start integrating simple, but smart google map/earth application in our services, the better it will be for our users.

    everyone knows hasin as mr. blog, i think you should apply your skills on mapping, get the somewhere in… map everywhere, and be known in bangladesh as mr. map, or mr. googlemap, or mr. somewhere!

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

my tweets

 

April 2007
S S M T W T F
« Mar   May »
 123456
78910111213
14151617181920
21222324252627
282930  

Flickr Photos



@kamalapur over bridge

@kamalapur station

cox's bazaar trip oct 09

cox's bazaar trip oct 09

More Photos
Follow

Get every new post delivered to your Inbox.