MCPcopy Index your code
hub / github.com/Maps4HTML/MapML.js / _pointsToLatLngs

Method _pointsToLatLngs

src/map-area.js:156–165  ·  view source on GitHub ↗
(points)

Source from the content-addressed store, hash-verified

154 return points;
155 }
156 _pointsToLatLngs(points) {
157 // points should be an array of nested container coordinates [[x1,y1],[x2,y2](,[xN,yN])]
158 var latLngArray = [];
159 if (this._map) {
160 for (var i = 0, map = this._map; i < points.length; i++) {
161 latLngArray.push(map.containerPointToLatLng(points[i]));
162 }
163 }
164 return latLngArray;
165 }
166 _styleToPathOptions(style) {
167 var options = {};
168 if (style.stroke !== 'none') {

Callers 1

_attachedToMapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected