Plain Leaflet API | Mapbox

Plain Leaflet API body { margin:0; padding:0; } #map { position:absolute; top:0; bottom:0; width:100%; }

// Replace ‘examples.map-i87786ca’ with your map id.var mapboxTiles = L.tileLayer’https://{s}.tiles.mapbox.com/v3/examples.map-i87786ca/{z}/{x}/{y}.png’, { attribution: ‘Terms & Feedback‘};var map = L.map’map’ .addLayermapboxTiles .setView[42.3610, -71.0587], 15;

via Plain Leaflet API | Mapbox.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s