How do I call the Google Map API in PHP and display the points of latitude and longitude in the database on the map?
Title. Better write the details, thank you!
------Solution--------------------
The 23.1150614,113.4082905 is the latitude and longitude of the position.
Google Maps API test
This key is going to apply to Google.
key=abqiaaaahdyarwhqc8qoi6hi4fw2abs7hg4ulivph-zy5zav91xflkvwfhrt3brs_8ce9kmwp7uxsengxsyf3a
Local Test without key
------Solution--------------------
Reference:
reference: Top Top ~ ~ ~
The following can add an identity to the map, the question is how to add all the corresponding points in the database? Script does not reference the value in the database!!!
PHP code?123456789101112131415161718192021222324252627282930313233343536373839404142434445464
...
Read database needs to understand Dynamic language Foundation
------Solution--------------------
In fact, the best way is to read the data from the database, write an external KML file, and then use JS loading.
This thing is not few words said clear, code or something, it is best to study their own, the key is to really understand.
Reference Https://developers.google.com/maps/documentation/javascript/layers
------Solution--------------------
Demo:http://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/ggeoxml_loader.html
Kml:http://kml.lover.googlepages.com/my-vacation-photos.kml
The source of their own research to go.