code4sac / bikeandwalk

Bike and Ped traffic counting web app
app.bikeandwalk.org
5 stars 0 forks source link

Map Ideas #17

Open roughani opened 8 years ago

roughani commented 8 years ago

From @wleddy on January 26, 2016 1:47

Thoughts on Maps

My thinking about what to display in the "general" map view:

Locations

The primary focus will be locations I think as far as marker placement goes. So I can imagine:

This is how I imagine the map display template looking:

<script type="text/javascript" >
    createMap();
    {% for loc in locatons %}
        setMarker({{loc.lat}}, {{loc.lng}},{options?});
    {% end for %}
    zoomToFitAllMarkers();
</script>

Copied from original issue: wleddy/bikeandwalk#27

roughani commented 8 years ago

From @wleddy on January 28, 2016 22:57

added config properties for MapBox access: MAPBOX_PROJECT_ID & MAPBOX_ACCESS_TOKEN

roughani commented 8 years ago

From @wleddy on February 1, 2016 8:50

Issue with the map display. If there is a location without Latlng data, the map does not display at all. Probably an error trying to evaluate undefined.