Skip to main content
100%

This is an excerpt from a store-locator app we were building. Information that is often in infowindows on the map canvas is displayed in a "store-info" sidebar <div> outside the map canvas

✓ Published0🌍 Public
Aandrewbt
Last edited Apr 1, 2015
Created on Apr 1, 2015

This example shows a store-locator interface where search results appear in a sidebar `<div>` outside the map canvas, listing the five nearest stores with name, telephone, Monday hours, and location description. The map uses the Google Maps API for autocomplete and centering, while store data comes from a CartoDB SQL query that orders locations by spatial proximity to the searched point. The code builds HTML strings for each result and injects them into the `#store-info` div, with links that call `openInfoWindow` on the CartoDB layer to highlight the corresponding map marker.

AI-generated description

Similar vizzes