Retrieves GMaps data for the gmap.js integration

author etessore
version 1.0
package classes

 Methods

Get a <script> tag with a JSON variable in it.

get_script_content() : string
example GMapDataRetriever.example.json

Returns

string

Examples


Set the map data to the given set

set_map_data(array $map_data) : \GMapDataRetriever

Parameters

$map_data

array

the map data

Returns

\GMapDataRetriever$this for chainability

Prints the <scrpt> tag generated by get_script_content to the DOM

the_script() 

Set the class to get map datas from the Simple fields plugin Checks if the plugin is enabled.

use_simple_fields() : \GMapDataRetriever

Returns

\GMapDataRetriever$this for chainability

 Properties

 

stores some map data

$map_data : array