This article mainly introduces the google map application method in php, analyzes the google map interface calling techniques and specific usage, and provides some reference value, for more information, see the examples in this article. Share it with you for your reference. The details are as follows:
The php code is as follows:
The code is as follows:
Function selected ($ param, $ value ){
If ($ param = $ value) print "SELECTED ";
}
# Collect any form data to control the display
$ Scale = 10;
$ Maptype = "G_NORMAL_MAP ";
If ($ _ REQUEST [scale]) $ scale = $ _ REQUEST [scale];
If ($ _ REQUEST [maptype]) $ maptype = $ _ REQUEST [maptype];
# Geocoding your location
# Note-you wocould cache this in a file
# The key is domain specific-your google maps tutorial key
/*
$ Location = file ("http://maps.google.com/maps/geo? Q = 48 + Spa + Road, + Melksham, + UK &
Output = csv & key = ABQIAAAAvp3 _ HwvT3VkixIIbsW0axQuKI_6t1bH2P0vCI_Q8jfpn8qdNBQMnnelj
Xh9czilkau_bYSCXteS_A ");
*/
# Following line is hard coded for demo
$ Location [0] = "51.369318, 2.133457 ";
List ($ stat, $ acc, $ north, $ east) = explode (",", $ location [0]);
The html page is as follows:
The code is as follows:
Well House Manor, Melksham
Type = "text/javascript tutorial"> script