blob: d6b5d9962fa0939055d6fcc376d0f8b0a1f0ff39 (
plain)
- //Load common code that includes config, then load the app logic for this page.
- requirejs(['./slippymap'], function(_foo) {
- var depth = '../../';
- requirejs.config({
- baseUrl: depth + 'js/lib',
- });
- requirejs(['app/mapfactory'], function(mkmap) {
- L.Icon.Default.imagePath = depth + 'img/leaflet/';
- var map = mkmap('map', [
- [55.76846, 12.45369],
- [55.54883, 12.67891]
- ]);
- requirejs([
- 'app/boundary',
- 'json!data/bydele.json'
- ], function(boundary, data) {
- map.addLayer(boundary(data));
- map.layers.addOverlay(boundary(data), 'Regionsgrænse');
- });
- });
- });
|