Lattice Grid Buy a licence

mapview ยท console.warn

the map view module needs the Lattice core; ...

Printed by mapview, prefixed [lattice], since 1.92.0.

Warnings reference › mapview:requires-core

Identifier
mapview:requires-core
Raised by
mapview
Since
1.92.0

What happened

The map view module's script-tag (UMD) build was loaded on a page whose LatticeGrid global is missing, so the core's own script build was not loaded first. The map view no longer inlines the pushdown planner, so with no core there is no grid to pass to createMapView; the API this load publishes cannot be used until the core is loaded. The warning is raised once and the load proceeds.

The fix

Load the core's script build (e.g. lattice-grid.min.js) before modules/mapview.min.js, so LatticeGrid.createGrid exists before createMapView is called.

The smallest fix

<script src="lattice-grid.min.js"></script>
<script src="modules/mapview.min.js"></script>

Reference

Covered in full at the API reference.