leighghunt/tile38-viewer

Leaflet requires to set a center location

jwillmer opened this issue · 0 comments

The viewer app does not show any map if the center location is not set. My workaround:

var centerLocation = [57.9063542, 17.5656617]; // Baltic sea
var map = L.map('map');
map.setView(centerLocation, 4);

Maybe you can calculate a center location based on the actual points in tile38?