i m creating a web application using Google map in it. i need to know how to implement, when i m searching some location using php and i get the result in php array(), that array result which contains different location’s coordinates(latitude longitude) display on map + focuses on these coordinates in a map view …..
Share
You need to create a GBound and give it all your points at creation on later using extend() method.
https://developers.google.com/maps/documentation/javascript/v2/reference#GBounds
Then use the map.fitBounds() method to set the view on these points.
https://developers.google.com/maps/documentation/javascript/reference