Skip to content

joshhannan/php-google-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google Maps API Plugin

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';

About

Simple PHP include for Google Maps.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages