function _gmap_polyutil_get_zoom_level in GMap Module 7.2
Same name and namespace in other branches
- 5 gmap_polyutil.inc \_gmap_polyutil_get_zoom_level()
- 6.2 gmap_polyutil.inc \_gmap_polyutil_get_zoom_level()
- 6 gmap_polyutil.inc \_gmap_polyutil_get_zoom_level()
- 7 gmap_polyutil.inc \_gmap_polyutil_get_zoom_level()
Place points in levels based on their "weight".
A value derived from distance calculations in the simplification algorithm, gmap_polyutil_dp_encode().
Deprecated
use GmapPolylineToolbox::getInstance()->setWeight($weight)->getZoomLevel();
File
- ./
gmap_polyutil.inc, line 166 - Encoded polyline utilities.
Code
function _gmap_polyutil_get_zoom_level($weight) {
include_once drupal_get_path('module', 'gmap') . '/lib/Drupal/gmap/GmapPolylineToolbox.php';
return GmapPolylineToolbox::getInstance()
->setWeight($weight)
->getZoomLevel();
}