Inherited by MapsGoogleMaps, MapsOpenLayers, and MapsYahooMaps.
Public Member Functions | |
| displayMap (&$parser, $map) | |
| Handles the request from the parser hook by doing the work that's common for all mapping services, calling the specific methods and finally returning the resulting output. | |
Protected Attributes | |
| $markerData = array() | |
Private Member Functions | |
| setZoom () | |
| Sets the zoom level to the provided value. | |
| setCoordinates () | |
| Sets the $marler_lon and $marler_lat fields. | |
| setCentre () | |
| Sets the $centre_lat and $centre_lon fields. | |
| doEscaping () | |
| Ascapte the title and label. | |
Definition at line 16 of file Maps_BaseMap.php.
| MapsBaseMap::displayMap | ( | &$ | parser, | |
| $ | map | |||
| ) | [final] |
Handles the request from the parser hook by doing the work that's common for all mapping services, calling the specific methods and finally returning the resulting output.
| unknown_type | $parser | |
| unknown_type | $map |
Definition at line 31 of file Maps_BaseMap.php.
References MapsMapFeature::addSpecificMapHTML(), doEscaping(), MapsMapFeature::doMapServiceLoad(), MapsMapFeature::manageMapProperties(), setCentre(), setCoordinates(), MapsMapFeature::setMapName(), MapsMapFeature::setMapSettings(), and setZoom().
| MapsBaseMap::setZoom | ( | ) | [private] |
Sets the zoom level to the provided value.
When no zoom is provided, set it to the default when there is only one location, or the best fitting soom when there are multiple locations.
Definition at line 59 of file Maps_BaseMap.php.
Referenced by displayMap().
| MapsBaseMap::setCoordinates | ( | ) | [private] |
Sets the $marler_lon and $marler_lat fields.
Definition at line 74 of file Maps_BaseMap.php.
References $markerData, and MapsUtils::getLatLon().
Referenced by displayMap().
| MapsBaseMap::setCentre | ( | ) | [private] |
Sets the $centre_lat and $centre_lon fields.
Note: this needs to be done AFTRE the maker coordinates are set.
Definition at line 102 of file Maps_BaseMap.php.
References $egMapsMapLat, $egMapsMapLon, and MapsUtils::getLatLon().
Referenced by displayMap().
| MapsBaseMap::doEscaping | ( | ) | [private] |
Ascapte the title and label.
Definition at line 134 of file Maps_BaseMap.php.
Referenced by displayMap().
MapsBaseMap::$markerData = array() [protected] |
Definition at line 21 of file Maps_BaseMap.php.
Referenced by MapsYahooMaps::addSpecificMapHTML(), MapsOpenLayers::addSpecificMapHTML(), MapsGoogleMaps::addSpecificMapHTML(), and setCoordinates().
1.5.6