Lattice Grid Buy a licence

htmx ยท console.warn

autoInitMap: data-lattice-map found no live ...

Printed by htmx, prefixed [lattice], since 1.93.0.

Warnings reference › htmx:map-no-grid

Identifier
htmx:map-no-grid
Raised by
htmx
Since
1.93.0

What happened

A [data-lattice-map] element must be bound to a live grid so the viewer has rows to draw: either a data-lattice-bind="<grid id>" attribute naming a grid host element that carries a live __lattice, or a config.grid string doing the same. Neither resolved to a live grid, so nothing was built and the element was left as-is.

The fix

Point the element at a hydrated grid - give the grid's host element a matching id and the map host a data-lattice-bind with that id, or put a grid: "<grid id>" key in the map's config.

The smallest fix

<div id="map" data-lattice-map data-lattice-bind="grid"></div>
<script type="application/json" data-lattice-config>{"type":"markermap","lon":"lng","lat":"lat"}</script>

Reference

Covered in full at the API reference.