Google Maps

From P4A - PHP For Applications - PHP Framework

Jump to: navigation, search

The widget allow to insert a map from Google Maps, reading marks data from datasource for show overlays like marker, customizing the map behavior and triggering some map events like marks click or change.

Contents

System requirements

Google allow using of a javascript API for insert inside a page a dynamic map. To this map is possible to add one or more overlays, like markers (special icons for highlight a point).

To use this service you'll need a key (free) that will be passed as parameter to API call, that will be associated to the domain used in page url.

All coordinates used for map and overlays must be geographic longitude and latitude, no such simple for humans. In Google Map Widget is possible using conventional addresses ( the widget automatically query Google database) and latitude/longitude coordinates.

Features

GoogleMap Widget
GoogleMap Widget
  • Using specify coordinates like human readable address
  • Size, center and zoom of map settable
  • Controls (type, zoom, overview) are customizables
  • Service to query a "human address" and gets the geographical coordinates
  • Service to know the distance (in kilometers) between two points
  • Allow adding markers on map for highlight point and get info on mouse over event
  • Allow modifing markers position and returning the new coordinates
  • Function for query the map to know the seetings and boundaries of the map (useful to determines which mark must be in)

Additional documentation

Download

License warning

The contribs linked above have their own license, be sure this is compatible with the license of your P4A version before using them.

Personal tools
Theme customizations