Articles in this category

Integrating map and store locator

Andrija Krstic Updated by Andrija Krstic

This article contains instructions on how to embed interactive map of physical store locations to your site's pages.

Overview

If you have multiple store locations that you want to showcase on an interactive map, or if you deliver to various pickup points, the example below illustrates what you can create.


Video & Prompt Instructions

Prompts used in the video are copied below.

We need to create a new landing page for the store locator with the following URL: /store-locator. The page should include: A hero section at the top. Below the hero, show a title and a map. For the map, use the Leaflet library https://leafletjs.com/
We need to create a map locator on the /store-locator page. - On the left side, show a list of clickable store locations with their name, address, and phone number. - On the right side, show a map with pins for each location. - Make sure the pins are displayed correctly and are clickable, showing the store info. Use the following store locations: - Green Box Downtown 📍 123 Main St, New York, NY 10001, USA 📞 212-555-1234 - Green Box Uptown 📍 456 Elm St, New York, NY 10024, USA 📞 212-555-5678 - Green Box Brooklyn 📍 789 Pine St, Brooklyn, NY 11201, USA 📞 718-555-9012 - Green Box Queens 📍 321 Oak St, Queens, NY 11375, USA 📞 718-555-3456 - Green Box Jersey City 📍 654 River Rd, Jersey City, NJ 07302, USA 📞 201-555-7890 Use the Leaflet library (https://leafletjs.com/ ) for the map and ensure it works properly with all pins.

Link for the library used is accessible here: https://leafletjs.com/

Provided prompts are intended as guidance only and should be adapted and refined for the specific use case before being used in a project. Given the indeterministic nature of AI systems, the same prompt may also produce slightly different results across environments or executions.

Did you find this resource helpful?
Return to top
Ready to get started
with Subbly?
Try for free