Simple PHP include for Google Maps.
Google Maps API Plugin
Author: Josh Hannan
Description:
This plugin is a simple PHP include in the header. Dependent on variables that are specified, calculates and finds #google-map and places in that div. For multiple maps, the div id would be #google-map-1, #google-map-2, etc.
For directions, the div that needs to be specified is #g-directions. Also, include a text input and a submit button with the following code where you want to display your directions:
If multiple $locations, specify by placing the 'lat,longs' into an array, as shown below.
Variables are:
$location = 'latitude,longitude'; $location = array( 'latitude,longitude', 'latitude,longitude' ); $marker_url = 'custom_image_marker_url.jpg'; $zoom = '10'; $directions = 'yes'; $styles = 'yes';