public function GmapPolylineToolbox::getZoomLevels in GMap Module 7.2
Build a logarithmic scale of zoom levels.
former _gmap_polyutil_zoom_levels()
Return value
mixed Zoom levels.
2 calls to GmapPolylineToolbox::getZoomLevels()
- GmapPolylineToolbox::getDPEncode in lib/
Drupal/ gmap/ GmapPolylineToolbox.php - Implementation of the Douglas-Peucker polyline simplification algorithm.
- GmapPolylineToolbox::__construct in lib/
Drupal/ gmap/ GmapPolylineToolbox.php - Do not change.
File
- lib/
Drupal/ gmap/ GmapPolylineToolbox.php, line 340 - Contains GmapPolylineToolbox.php Encoded polyline utilities.
Class
Namespace
Drupal\gmapCode
public function getZoomLevels() {
if (!isset(self::$levels)) {
for ($i = 0; $i < self::GMAP_ZOOM_LEVELS; $i++) {
self::$levels[$i] = self::GMAP_DP_EPSILON * pow(self::GMAP_ZOOM_FACTOR, self::GMAP_ZOOM_LEVELS - $i - 1);
}
}
return self::$levels;
}