NXGoogleMapsAPI::_getGMapInitCode | ( | ) |
Compiles the Javascript to initialize the map. Is automatically called, so do not call yourself.
NXGoogleMapsAPI::_initialize | ( | ) |
Initializes the standard values of the class. Is automatically called by the constructor.
NXGoogleMapsAPI::addAddress | ( | $ | address, | |
$ | htmlinfo, | |||
$ | setCenter = true | |||
) |
Add an address-marker to the map. The address is resolved by the webbrowser. with the Google Geocoder.
string | address which should be add. test with google maps | |
string | HTML-Code which will be displayed when the user clicks the address | |
boolean | Set the Center to this point(true) or not (false) |
NXGoogleMapsAPI::addControl | ( | $ | control | ) |
Adds a control to the map
control | Control-Type. Allowed are the constants GLargeMapControl - a large pan/zoom control used on Google Maps. Appears in the top left corner of the map. GSmallMapControl - a smaller pan/zoom control used on Google Maps. Appears in the top left corner of the map. GSmallZoomControl - a small zoom control (no panning controls) used in the small map blowup windows used to display driving directions steps on Google Maps. GScaleControl - a map scale GMapTypeControl - buttons that let the user toggle between map types (such as Map and Satellite) GOverviewMapControl - a collapsible overview map in the corner of the screen |
NXGoogleMapsAPI::addDragMarker | ( | $ | longitude, | |
$ | latitude | |||
) |
Add a dragable marker to the map. Only one Drag-Marker is allowed!
integer | $longitude Longitude of the point | |
integer | $latitude Lattitude of the point |
NXGoogleMapsAPI::addGeoPoint | ( | $ | longitude, | |
$ | latitude, | |||
$ | htmlinfo, | |||
$ | setCenter | |||
) |
Add a geopoint to the map.
integer | Longitude of the point | |
integer | Latitude of the point | |
string | HTML-Code which will be displayed when the user clicks the address | |
boolean | Set the Center to this point(true) or not (false) |
NXGoogleMapsAPI::getBodyCode | ( | ) |
Get the BodyCode and draw the map.
NXGoogleMapsAPI::getHeadCode | ( | ) |
Returns the HTML-Code, which must be placed within the <HEAD>-Tags of your page.
NXGoogleMapsAPI::getOnLoadCode | ( | ) |
Get the code, which must be passed to the <body>-attribute onLoad.
NXGoogleMapsAPI::NXGoogleMapsAPI | ( | $ | apiKey = "" |
) |
Constructor
string | $apiKey The Google Maps API-Key for your domain. |
NXGoogleMapsAPI::setCenter | ( | $ | x, | |
$ | y | |||
) |
Center the map to the coordinates
integer | $x Longitude | |
integer | $y Latitude |
NXGoogleMapsAPI::setHeight | ( | $ | height | ) |
Set the height of the map
integer | $height The Height in pixels |
NXGoogleMapsAPI::setWidth | ( | $ | width | ) |
Set the width of the map
integer | $width The Height in pixels |
NXGoogleMapsAPI::setZoomFactor | ( | $ | zoomFactor | ) |
Set the ZoomFactor The ZoomFactor is a value between 0 and 17
integer | $zoomFactor Value of the Zoom-Factor |