Add project files.

This commit is contained in:
Bernard Darnton
2020-10-12 06:03:49 +13:00
parent 15357aad6b
commit 9576c5aa5b
61 changed files with 1993 additions and 0 deletions
@@ -0,0 +1,39 @@
window.LeafletMap = {
map: function (id, options) {
return deviceInterop.storeObjRef(L.map(id, options));
},
marker: function (latlng, options) {
return deviceInterop.storeObjRef(L.marker(latlng, options));
},
polyline: function (latlngs, options) {
return deviceInterop.storeObjRef(L.polyline(latlngs, options));
},
tileLayer: function (urlTemplate, options) {
return deviceInterop.storeObjRef(L.tileLayer(urlTemplate, options));
},
Layer: {
addTo: function (layer, map) {
layer.addTo(map);
},
remove: function (layer) {
layer.remove();
}
},
Polyline: {
addLatLng: function (polyline, latlng, latlngs) {
polyline.addLatLng(latlng, latlngs);
}
}
}