How do I call the Google Maps API in PHP and display the points in the database with latitude and longitude in the map?

Source: Internet
Author: User
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.
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.