All products

Build a Longdo web map with AI

Place clickable markers on a Longdo web map and keep each icon centred on its coordinate when visitors zoom.

Build a Longdo web map with AI to make a venue plan usable at street level. Imagine two entrances on opposite sides of a theatre. The longdo-map-js skill helps an agent anchor each marker to its coordinate, check how its HTML box is sized and find out why it seems to wander when you zoom.

The guide also connects map clicks to the right overlay. Give the accessible entrance and the box office distinct identifiers and labels. Visitors can then tap for a description without remembering which side of the building the marker occupied a moment ago. The page can start at the theatre’s location without requesting anyone’s device position.

What it does

  • Match the outer HTML box to the dimensions of the marker artwork.
  • Anchor a pin by its tip or centre a round symbol on its location.
  • Listen for an overlay click and look up the selected entrance by its identifier.
  • Attach a short popup to an inner marker element or use the built-in popup.
  • Offer a layer selector for the base map and any relevant overlays.

Install and use

  1. Install the skill and open your JavaScript project. Load the publisher’s map SDK using a Longdo account and a key registered to your site.
  2. Ask “Mark the theatre entrances and open the box office hours when its marker is clicked.”
  3. Test both markers on a narrow screen and on desktop. Zoom in and out while checking the pin against the entrance.

FAQ

Source

Made by Metamedia Technology. Original skill: longdo-map-js, published on GitHub under the Apache-2.0 licence.

View on GitHub