This documentation is generated from PHPDOC.
__construct | public | __construct() constructor @return bool | |
_isValidPositionSet | private | _isValidPositionSet( helper function for generateUrl(): check parameters for position and zoom it returns true/ false @see getProviders() to get a list of known providers @param string $sProvider provider of a map website @param float $lat position - latitude @param float $lon position - longitude @param float $zoomlevel zoomlevel @return string | |
_isStrictPositionSet | private | _isStrictPositionSet( helper function for generateUrl(): check parameters if they fit strict requirements for a provider. it returns true/ false @see getProviders() to get a list of known providers @param string $sProvider provider of a map website @param float $lat position - latitude @param float $lon position - longitude @param float $zoomlevel zoomlevel @return string | |
fixPosition | public | fixPosition() fix positition data to compatible values that match all providers @return type | |
getMinZoom | public | getMinZoom() get minimal zoom level of all providers @return float or int | |
getPos | public | getPos( get a position by parsing a url. It returns an array with the keys - source - given url - provider - name of the provider that matches the url - lat, lon - position - zoom - zoom level It returns false if an url was not detected as a map url of any of the known map providers @param string $sUrl @return array | |
getProviders | public | getProviders() get a flat array for a list of known map providers @return array | |
generateUrl | public | generateUrl( generate an url to a map with a given position @see getProviders() to get a list of known providers @param string $sProvider provider of a map website @param float $lat position - latitude @param float $lon position - longitude @param float $zoomlevel zoomlevel @return string | |
generateUrls | public | generateUrls( get a list with links to a given position position with all map providers @param float $lat position - latitude @param float $lon position - longitude @param float $zoomlevel zoomlevel @return array | |
getUrls | public | getUrls() get a list with links to a given position position with all map providers call this function after method getPos() that fetches the position from an url @see getPos() @return array |
$_aPatterns | protected | $_aPatterns = false |
$_aPosition | protected | $_aPosition = false |