5
0
mirror of https://git.coop/cotech/website.git synced 2024-11-25 08:03:06 +00:00

Add source map files

These should almost certainly be generated.
This commit is contained in:
James Mead 2017-07-01 12:45:46 +01:00
parent ad63d209ea
commit b98f832cbb
3 changed files with 3 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"version":3,"sources":["app.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"app.js","sourcesContent":["$(document).foundation();\n\n$('#coops-view-tabs').on('change.zf.tabs', function() {\n window.app.createMapMultiMarker('map-coops', 54.7, -4.2, 6, window.app.mapEntries);\n});\n\nvar elem = new Foundation.Sticky($('.top-bar'));\nvar app = window.app || {};\n\nvar mapboxAccessToken = window.mapboxAccessToken || '';\n\napp.apiUrl = 'https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=' + mapboxAccessToken;\n\napp.tileLayerOptions = {\n maxZoom: 18,\n attribution: 'Map data &copy; <a href=\"http://openstreetmap.org\">OpenStreetMap</a> contributors, ' + '<a href=\"http://creativecommons.org/licenses/by-sa/2.0/\">CC-BY-SA</a>, ' + 'Imagery © <a href=\"http://mapbox.com\">Mapbox</a>',\n id: 'mapbox.streets',\n token: window.mapboxAccessToken\n};\n\napp.map = null;\n\napp.createMap = function(mapId, lat, lng, zoom) {\n window.app.map = L.map(mapId).setView([lat, lng], zoom);\n}\n\napp.createMapSingleMarker = function(mapId, lat, lng, zoom, markerText) {\n if (!window.app.map) {\n window.app.createMap(mapId, lat, lng, zoom);\n var myMap = window.app.map;\n\n L.tileLayer(window.app.apiUrl, window.app.tileLayerOptions).addTo(myMap);\n\n var marker = L.marker([lat - 0.0005, lng]).addTo(myMap);\n marker.bindPopup(markerText).openPopup();\n }\n}\n\napp.createMapMultiMarker = function(mapId, lat, lng, zoom, markersArray) {\n if (!window.app.map) {\n window.app.createMap(mapId, lat, lng, zoom);\n var myMap = window.app.map;\n\n L.tileLayer(window.app.apiUrl, window.app.tileLayerOptions).addTo(myMap);\n\n markersArray.forEach(function (markerVar) {\n var marker = L.marker([markerVar.lat, markerVar.lng]).addTo(myMap);\n marker.bindPopup(markerVar.markerText);\n });\n }\n};\n"]}

File diff suppressed because one or more lines are too long