This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
playground:mars_example [2016/05/16 21:24] jkarl |
playground:mars_example [2016/06/30 21:24] (current) jkarl |
||
---|---|---|---|
Line 19: | Line 19: | ||
L.mapbox.accessToken = 'pk.eyJ1IjoiamFrYWwxNCIsImEiOiJPN3ZIZXlRIn0.TPFa1z0-Xy5Mf4wzAVnVvQ'; | L.mapbox.accessToken = 'pk.eyJ1IjoiamFrYWwxNCIsImEiOiJPN3ZIZXlRIn0.TPFa1z0-Xy5Mf4wzAVnVvQ'; | ||
var marsCluster = L.mapbox.map('map') | var marsCluster = L.mapbox.map('map') | ||
- | .setView([0,0],1) | + | .setView([0,0],2) |
.addLayer(L.mapbox.tileLayer('mapbox.mars-satellite')); | .addLayer(L.mapbox.tileLayer('mapbox.mars-satellite')); | ||
L.mapbox.featureLayer() | L.mapbox.featureLayer() | ||
- | .loadURL('https://rawgit.com/JournalMap/API_examples/master/marslit.txt') | + | .loadURL('https://rawgit.com/JournalMap/API_examples/master/marslit.json') |
.on('ready', function(e) { | .on('ready', function(e) { | ||
var clusterGroup = new L.MarkerClusterGroup(); | var clusterGroup = new L.MarkerClusterGroup(); |
JournalMap data is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License