All examples By author By category About

mpmckenna8

Carto DB layers API simple

This a a very simple example of implementing the CartoDB API and getting some layers created on their platform onto your leaflet map. Once you do this you can just edit the layer style, popups, legend or data for your layer on CartoDB and it will change the next time your map is loaded. Pretty simple and way easier than trying to host your own postgres instance and code out a bunch of scales and styles.

The data for the parks is from OpenStreetmap data related to parks in the San Diego area. Let me know if you have any questions or let me know if I messed something up.