public function GmapPolylineToolbox::setLatLonNumber in GMap Module 7.2
The following methods will encode numbers.
So that they may be used in "Encoded Polylines" on Google Maps. The encoding is described here: http://code.google.com/apis/maps/documentation/polylinealgorithm.html
Numbers for latitudes/longitudes and levels are encoded slightly differently--when generating Encoded Polylines, latitudes and longitudes are encoded with gmap_polyutil_encode_signed(), and "levels" are encoded using gmap_polyutil_encode_unsigned().
former gmap_polyutil_encode_latlon($x)
File
- lib/
Drupal/ gmap/ GmapPolylineToolbox.php, line 96 - Contains GmapPolylineToolbox.php Encoded polyline utilities.
Class
Namespace
Drupal\gmapCode
public function setLatLonNumber($x) {
$this->latlonNumber = $x;
return $this;
}