how can i change longitude and latitude of my google map?
can i use javascript for that????

i made website with google map api and it works with default value for longitude and latitude...here is my concern, all i want is to change the location dynamically of my google map once i click one button. how can i do that??? pls guys help!!! thanks for click me.... :(

You can change the map's center with something like this:

gMap.setCenter(new google.maps.LatLng(0, 0));

Replace gMap with the variable for your map. Replace the 0's with your lat and long.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.