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

Function updateMapZoomTo

src/mapml/utils/Util.js:458–463  ·  view source on GitHub ↗
(zoomTo)

Source from the content-addressed store, hash-verified

456 }
457
458 function updateMapZoomTo(zoomTo) {
459 // can't use mapEl.zoomTo(...) here, it's too slow!
460 map.options.mapEl.lat = +zoomTo.lat;
461 map.options.mapEl.lon = +zoomTo.lng;
462 map.options.mapEl.zoom = +zoomTo.z;
463 }
464 },
465 getBoundsFromMeta: function (mapml) {
466 if (!mapml) return null;

Callers 1

postTraversalSetupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected