forked from Snck3rs/contao-leaflet-libraries
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a89b9abc96 | ||
|
|
bf88bbca8c | ||
|
|
232d223eee | ||
|
|
79fdad5ca3 | ||
|
|
c5b72d2c15 | ||
|
|
69b500a5fc |
@@ -12,14 +12,15 @@ Contao CMS.
|
|||||||
|
|
||||||
This package contains following packages:
|
This package contains following packages:
|
||||||
|
|
||||||
- [leaflet 1.2.0](http://leafletjs.com)
|
- [leaflet 1.3.1](http://leafletjs.com)
|
||||||
- [Leaflet-providers 1.1.17](http://leaflet-extras.github.io/leaflet-providers)
|
- [Leaflet-providers 1.1.17](http://leaflet-extras.github.io/leaflet-providers)
|
||||||
- [Leaflet.markercluster 1.1.0](https://github.com/Leaflet/Leaflet.markercluster)
|
- [Leaflet.markercluster 1.3.0](https://github.com/Leaflet/Leaflet.markercluster)
|
||||||
- [Leaflet-omnivore 0.3.4](https://github.com/mapbox/leaflet-omnivore)
|
- [Leaflet-omnivore 0.3.4](https://github.com/mapbox/leaflet-omnivore)
|
||||||
- [Leaflet.loading 0.1.24](https://github.com/ebrelsford/Leaflet.loading)
|
- [Leaflet.loading 0.1.24](https://github.com/ebrelsford/Leaflet.loading)
|
||||||
- [Leaflet.Control.FullScreen 1.4.3](https://github.com/brunob/leaflet.fullscreen)
|
- [Leaflet.Control.FullScreen 1.4.3](https://github.com/brunob/leaflet.fullscreen)
|
||||||
- [Leaflet Control Geocoder 1.5.5](https://github.com/perliedman/leaflet-control-geocoder)
|
- [Leaflet Control Geocoder 1.5.8](https://github.com/perliedman/leaflet-control-geocoder)
|
||||||
- [Leaflet.ExtraMarkers 1.0.6](https://github.com/coryasilva/Leaflet.ExtraMarkers)
|
- [Leaflet.ExtraMarkers 1.0.6](https://github.com/coryasilva/Leaflet.ExtraMarkers)
|
||||||
|
- [leaflet.pm 0.23.1](https://github.com/codeofsumit/leaflet.pm)
|
||||||
- [osmtogeojson 2.2.12](https://github.com/tyrasd/osmtogeojson)
|
- [osmtogeojson 2.2.12](https://github.com/tyrasd/osmtogeojson)
|
||||||
- [spin.js 2.3.2](http://fgnass.github.io/spin.js)
|
- [spin.js 2.3.2](http://fgnass.github.io/spin.js)
|
||||||
|
|
||||||
@@ -52,4 +53,4 @@ License
|
|||||||
-------
|
-------
|
||||||
|
|
||||||
As this package is just a meta package to provide the libraries, the licenses of each library have to be accepted. They
|
As this package is just a meta package to provide the libraries, the licenses of each library have to be accepted. They
|
||||||
are unter the MIT or BSD license.
|
are under the MIT or BSD license.
|
||||||
|
|||||||
@@ -49,6 +49,7 @@
|
|||||||
background-image: url(images/geocoder.png);
|
background-image: url(images/geocoder.png);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-touch .leaflet-control-geocoder-icon {
|
.leaflet-touch .leaflet-control-geocoder-icon {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ module.exports = {
|
|||||||
options: {
|
options: {
|
||||||
showResultIcons: false,
|
showResultIcons: false,
|
||||||
collapsed: true,
|
collapsed: true,
|
||||||
expand: 'click',
|
expand: 'touch', // options: touch, click, anythingelse
|
||||||
position: 'topright',
|
position: 'topright',
|
||||||
placeholder: 'Search...',
|
placeholder: 'Search...',
|
||||||
errorMessage: 'Nothing found.',
|
errorMessage: 'Nothing found.',
|
||||||
@@ -17,7 +17,7 @@ module.exports = {
|
|||||||
defaultMarkGeocode: true
|
defaultMarkGeocode: true
|
||||||
},
|
},
|
||||||
|
|
||||||
includes: L.Mixin.Events,
|
includes: L.Evented.prototype || L.Mixin.Events,
|
||||||
|
|
||||||
initialize: function (options) {
|
initialize: function (options) {
|
||||||
L.Util.setOptions(this, options);
|
L.Util.setOptions(this, options);
|
||||||
@@ -54,6 +54,9 @@ module.exports = {
|
|||||||
L.DomEvent.disableClickPropagation(this._alts);
|
L.DomEvent.disableClickPropagation(this._alts);
|
||||||
|
|
||||||
L.DomEvent.addListener(input, 'keydown', this._keydown, this);
|
L.DomEvent.addListener(input, 'keydown', this._keydown, this);
|
||||||
|
if (this.options.geocoder.suggest) {
|
||||||
|
L.DomEvent.addListener(input, 'input', this._change, this);
|
||||||
|
}
|
||||||
L.DomEvent.addListener(input, 'blur', function() {
|
L.DomEvent.addListener(input, 'blur', function() {
|
||||||
if (this.options.collapsed && !this._preventBlurCollapse) {
|
if (this.options.collapsed && !this._preventBlurCollapse) {
|
||||||
this._collapse();
|
this._collapse();
|
||||||
@@ -64,22 +67,36 @@ module.exports = {
|
|||||||
|
|
||||||
if (this.options.collapsed) {
|
if (this.options.collapsed) {
|
||||||
if (this.options.expand === 'click') {
|
if (this.options.expand === 'click') {
|
||||||
L.DomEvent.addListener(icon, 'click', function(e) {
|
L.DomEvent.addListener(container, 'click', function(e) {
|
||||||
// TODO: touch
|
|
||||||
if (e.button === 0 && e.detail !== 2) {
|
if (e.button === 0 && e.detail !== 2) {
|
||||||
this._toggle();
|
this._toggle();
|
||||||
}
|
}
|
||||||
}, this);
|
}, this);
|
||||||
} else {
|
}
|
||||||
L.DomEvent.addListener(icon, 'mouseover', this._expand, this);
|
else if (L.Browser.touch && this.options.expand === 'touch') {
|
||||||
L.DomEvent.addListener(icon, 'mouseout', this._collapse, this);
|
L.DomEvent.addListener(container, 'touchstart mousedown', function(e) {
|
||||||
|
this._toggle();
|
||||||
|
e.preventDefault(); // mobile: clicking focuses the icon, so UI expands and immediately collapses
|
||||||
|
e.stopPropagation();
|
||||||
|
}, this);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
L.DomEvent.addListener(container, 'mouseover', this._expand, this);
|
||||||
|
L.DomEvent.addListener(container, 'mouseout', this._collapse, this);
|
||||||
this._map.on('movestart', this._collapse, this);
|
this._map.on('movestart', this._collapse, this);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
L.DomEvent.addListener(icon, 'click', function(e) {
|
|
||||||
this._geocode(e);
|
|
||||||
}, this);
|
|
||||||
this._expand();
|
this._expand();
|
||||||
|
if (L.Browser.touch) {
|
||||||
|
L.DomEvent.addListener(container, 'touchstart', function(e) {
|
||||||
|
this._geocode();
|
||||||
|
}, this);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
L.DomEvent.addListener(container, 'click', function(e) {
|
||||||
|
this._geocode();
|
||||||
|
}, this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.options.defaultMarkGeocode) {
|
if (this.options.defaultMarkGeocode) {
|
||||||
@@ -151,15 +168,11 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_geocodeResultSelected: function(result) {
|
_geocodeResultSelected: function(result) {
|
||||||
if (!this.options.collapsed) {
|
|
||||||
this._clearResults();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.fire('markgeocode', {geocode: result});
|
this.fire('markgeocode', {geocode: result});
|
||||||
},
|
},
|
||||||
|
|
||||||
_toggle: function() {
|
_toggle: function() {
|
||||||
if (this._container.className.indexOf('leaflet-control-geocoder-expanded') >= 0) {
|
if (L.DomUtil.hasClass(this._container, 'leaflet-control-geocoder-expanded')) {
|
||||||
this._collapse();
|
this._collapse();
|
||||||
} else {
|
} else {
|
||||||
this._expand();
|
this._expand();
|
||||||
@@ -173,9 +186,10 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_collapse: function () {
|
_collapse: function () {
|
||||||
this._container.className = this._container.className.replace(' leaflet-control-geocoder-expanded', '');
|
L.DomUtil.removeClass(this._container, 'leaflet-control-geocoder-expanded');
|
||||||
L.DomUtil.addClass(this._alts, 'leaflet-control-geocoder-alternatives-minimized');
|
L.DomUtil.addClass(this._alts, 'leaflet-control-geocoder-alternatives-minimized');
|
||||||
L.DomUtil.removeClass(this._errorElement, 'leaflet-control-geocoder-error');
|
L.DomUtil.removeClass(this._errorElement, 'leaflet-control-geocoder-error');
|
||||||
|
this._input.blur(); // mobile: keyboard shouldn't stay expanded
|
||||||
this.fire('collapse');
|
this.fire('collapse');
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -188,21 +202,23 @@ module.exports = {
|
|||||||
_createAlt: function(result, index) {
|
_createAlt: function(result, index) {
|
||||||
var li = L.DomUtil.create('li', ''),
|
var li = L.DomUtil.create('li', ''),
|
||||||
a = L.DomUtil.create('a', '', li),
|
a = L.DomUtil.create('a', '', li),
|
||||||
icon = this.options.showResultIcons && result.icon ? L.DomUtil.create('img', '', a) : null,
|
icon = this.options.showResultIcons && result.icon ? L.DomUtil.create('img', '', a) : null,
|
||||||
text = result.html ? undefined : document.createTextNode(result.name),
|
text = result.html ? undefined : document.createTextNode(result.name),
|
||||||
mouseDownHandler = function mouseDownHandler(e) {
|
mouseDownHandler = function mouseDownHandler(e) {
|
||||||
// In some browsers, a click will fire on the map if the control is
|
// In some browsers, a click will fire on the map if the control is
|
||||||
// collapsed directly after mousedown. To work around this, we
|
// collapsed directly after mousedown. To work around this, we
|
||||||
// wait until the click is completed, and _then_ collapse the
|
// wait until the click is completed, and _then_ collapse the
|
||||||
// control. Messy, but this is the workaround I could come up with
|
// control. Messy, but this is the workaround I could come up with
|
||||||
// for #142.
|
// for #142.
|
||||||
this._preventBlurCollapse = true;
|
this._preventBlurCollapse = true;
|
||||||
L.DomEvent.stop(e);
|
L.DomEvent.stop(e);
|
||||||
this._geocodeResultSelected(result);
|
this._geocodeResultSelected(result);
|
||||||
L.DomEvent.on(li, 'click', function() {
|
L.DomEvent.on(li, 'click', function() {
|
||||||
if (this.options.collapsed) {
|
if (this.options.collapsed) {
|
||||||
this._collapse();
|
this._collapse();
|
||||||
}
|
} else {
|
||||||
|
this._clearResults();
|
||||||
|
}
|
||||||
}, this);
|
}, this);
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -221,7 +237,7 @@ module.exports = {
|
|||||||
// Use mousedown and not click, since click will fire _after_ blur,
|
// Use mousedown and not click, since click will fire _after_ blur,
|
||||||
// causing the control to have collapsed and removed the items
|
// causing the control to have collapsed and removed the items
|
||||||
// before the click can fire.
|
// before the click can fire.
|
||||||
L.DomEvent.addListener(li, 'mousedown', mouseDownHandler, this);
|
L.DomEvent.addListener(li, 'mousedown touchstart', mouseDownHandler, this);
|
||||||
|
|
||||||
return li;
|
return li;
|
||||||
},
|
},
|
||||||
@@ -252,12 +268,10 @@ module.exports = {
|
|||||||
// Up
|
// Up
|
||||||
case 38:
|
case 38:
|
||||||
select(-1);
|
select(-1);
|
||||||
L.DomEvent.preventDefault(e);
|
|
||||||
break;
|
break;
|
||||||
// Up
|
// Up
|
||||||
case 40:
|
case 40:
|
||||||
select(1);
|
select(1);
|
||||||
L.DomEvent.preventDefault(e);
|
|
||||||
break;
|
break;
|
||||||
// Enter
|
// Enter
|
||||||
case 13:
|
case 13:
|
||||||
@@ -268,19 +282,19 @@ module.exports = {
|
|||||||
} else {
|
} else {
|
||||||
this._geocode();
|
this._geocode();
|
||||||
}
|
}
|
||||||
L.DomEvent.preventDefault(e);
|
|
||||||
break;
|
break;
|
||||||
default:
|
}
|
||||||
var v = this._input.value;
|
},
|
||||||
if (this.options.geocoder.suggest && v !== this._lastGeocode) {
|
_change: function(e) {
|
||||||
clearTimeout(this._suggestTimeout);
|
var v = this._input.value;
|
||||||
if (v.length >= this.options.suggestMinLength) {
|
if (v !== this._lastGeocode) {
|
||||||
this._suggestTimeout = setTimeout(L.bind(function() {
|
clearTimeout(this._suggestTimeout);
|
||||||
this._geocode(true);
|
if (v.length >= this.options.suggestMinLength) {
|
||||||
}, this), this.options.suggestTimeout);
|
this._suggestTimeout = setTimeout(L.bind(function() {
|
||||||
} else {
|
this._geocode(true);
|
||||||
this._clearResults();
|
}, this), this.options.suggestTimeout);
|
||||||
}
|
} else {
|
||||||
|
this._clearResults();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1279,4 +1293,4 @@ module.exports = {
|
|||||||
|
|
||||||
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
||||||
},{}]},{},[12])(12)
|
},{}]},{},[12])(12)
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
.leaflet-control-geocoder .leaflet-control-geocoder-icon,.leaflet-control-geocoder .leaflet-control-geocoder-icon:hover,.leaflet-control-geocoder a,.leaflet-control-geocoder a:hover{border-bottom:none;display:inline-block}.leaflet-control-geocoder{border-radius:4px;background:#fff;min-width:26px;min-height:26px}.leaflet-touch .leaflet-control-geocoder{min-width:30px;min-height:30px}.leaflet-control-geocoder .leaflet-control-geocoder-alternatives a{width:inherit;height:inherit;line-height:inherit}.leaflet-control-geocoder-form{display:none;vertical-align:middle}.leaflet-control-geocoder-expanded .leaflet-control-geocoder-form{display:inline-block}.leaflet-control-geocoder-form button,.leaflet-control-geocoder-form-no-error{display:none}.leaflet-control-geocoder-form input{font-size:120%;border:0;background-color:transparent;width:246px}.leaflet-control-geocoder-icon{border-radius:4px;width:26px;height:26px;border:none;background-color:#fff;background-image:url('images/geocoder.png');background-repeat:no-repeat;background-position:center}.leaflet-touch .leaflet-control-geocoder-icon{width:30px;height:30px}.leaflet-control-geocoder-throbber .leaflet-control-geocoder-icon{background-image:url('images/throbber.gif')}.leaflet-control-geocoder-form input:focus{outline:0}.leaflet-control-geocoder-error{margin-top:8px;margin-left:8px;display:block;color:#444}.leaflet-control-geocoder-alternatives{display:block;width:272px;list-style:none;padding:0;margin:0}.leaflet-control-geocoder-alternatives-minimized{display:none;height:0}.leaflet-control-geocoder-alternatives li{white-space:nowrap;display:block;overflow:hidden;padding:5px 8px;text-overflow:ellipsis;border-bottom:1px solid #ccc;cursor:pointer}.leaflet-control-geocoder-alternatives li a,.leaflet-control-geocoder-alternatives li a:hover{width:inherit;height:inherit;line-height:inherit;background:inherit;border-radius:inherit;text-align:left}.leaflet-control-geocoder-alternatives li:last-child{border-bottom:none}.leaflet-control-geocoder-alternatives li:hover,.leaflet-control-geocoder-selected{background-color:#f5f5f5}.leaflet-control-geocoder-address-context{color:#666}
|
.leaflet-control-geocoder .leaflet-control-geocoder-icon,.leaflet-control-geocoder .leaflet-control-geocoder-icon:hover,.leaflet-control-geocoder a,.leaflet-control-geocoder a:hover{border-bottom:none;display:inline-block}.leaflet-control-geocoder{border-radius:4px;background:#fff;min-width:26px;min-height:26px}.leaflet-touch .leaflet-control-geocoder{min-width:30px;min-height:30px}.leaflet-control-geocoder .leaflet-control-geocoder-alternatives a{width:inherit;height:inherit;line-height:inherit}.leaflet-control-geocoder-form{display:none;vertical-align:middle}.leaflet-control-geocoder-expanded .leaflet-control-geocoder-form{display:inline-block}.leaflet-control-geocoder-form button,.leaflet-control-geocoder-form-no-error{display:none}.leaflet-control-geocoder-form input{font-size:120%;border:0;background-color:transparent;width:246px}.leaflet-control-geocoder-icon{border-radius:4px;width:26px;height:26px;border:none;background-color:#fff;background-image:url('images/geocoder.png');background-repeat:no-repeat;background-position:center;cursor:pointer}.leaflet-touch .leaflet-control-geocoder-icon{width:30px;height:30px}.leaflet-control-geocoder-throbber .leaflet-control-geocoder-icon{background-image:url('images/throbber.gif')}.leaflet-control-geocoder-form input:focus{outline:0}.leaflet-control-geocoder-error{margin-top:8px;margin-left:8px;display:block;color:#444}.leaflet-control-geocoder-alternatives{display:block;width:272px;list-style:none;padding:0;margin:0}.leaflet-control-geocoder-alternatives-minimized{display:none;height:0}.leaflet-control-geocoder-alternatives li{white-space:nowrap;display:block;overflow:hidden;padding:5px 8px;text-overflow:ellipsis;border-bottom:1px solid #ccc;cursor:pointer}.leaflet-control-geocoder-alternatives li a,.leaflet-control-geocoder-alternatives li a:hover{width:inherit;height:inherit;line-height:inherit;background:inherit;border-radius:inherit;text-align:left}.leaflet-control-geocoder-alternatives li:last-child{border-bottom:none}.leaflet-control-geocoder-alternatives li:hover,.leaflet-control-geocoder-selected{background-color:#f5f5f5}.leaflet-control-geocoder-address-context{color:#666}
|
||||||
File diff suppressed because one or more lines are too long
@@ -21,7 +21,7 @@ The plugin supports many different data providers:
|
|||||||
* [What3Words](http://what3words.com/)
|
* [What3Words](http://what3words.com/)
|
||||||
* [Photon](http://photon.komoot.de/)
|
* [Photon](http://photon.komoot.de/)
|
||||||
* [Mapzen Search](https://mapzen.com/projects/search)
|
* [Mapzen Search](https://mapzen.com/projects/search)
|
||||||
* [HERE Geocoder API] (https://developer.here.com/rest-apis/documentation/geocoder/topics/overview.html)
|
* [HERE Geocoder API](https://developer.here.com/documentation/geocoder/topics/introduction.html)
|
||||||
|
|
||||||
The plugin can easily be extended to support other providers. Current extensions:
|
The plugin can easily be extended to support other providers. Current extensions:
|
||||||
|
|
||||||
@@ -94,6 +94,7 @@ L.Control.Geocoder(options)
|
|||||||
| Option | Type | Default | Description |
|
| Option | Type | Default | Description |
|
||||||
| --------------- | ---------------- | ----------------- | ----------- |
|
| --------------- | ---------------- | ----------------- | ----------- |
|
||||||
| collapsed | Boolean | true | Collapse control unless hovered/clicked |
|
| collapsed | Boolean | true | Collapse control unless hovered/clicked |
|
||||||
|
| expand | String | "touch" | How to expand a collapsed control: `touch` `click` `hover` |
|
||||||
| position | String | "topright" | Control [position](http://leafletjs.com/reference.html#control-positions) |
|
| position | String | "topright" | Control [position](http://leafletjs.com/reference.html#control-positions) |
|
||||||
| placeholder | String | "Search..." | Placeholder text for text input
|
| placeholder | String | "Search..." | Placeholder text for text input
|
||||||
| errorMessage | String | "Nothing found." | Message when no result found / geocoding error occurs |
|
| errorMessage | String | "Nothing found." | Message when no result found / geocoding error occurs |
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "leaflet-control-geocoder",
|
"name": "leaflet-control-geocoder",
|
||||||
"version": "1.5.5",
|
"version": "1.5.8",
|
||||||
"description": "Extendable geocoder with builtin support for Nominatim, Bing, Google, Mapbox, Photon, What3Words, MapQuest, Mapzen, HERE",
|
"description": "Extendable geocoder with builtin support for Nominatim, Bing, Google, Mapbox, Photon, What3Words, MapQuest, Mapzen, HERE",
|
||||||
"main": "dist/Control.Geocoder.js",
|
"main": "dist/Control.Geocoder.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepublish": "sh ./scripts/build.sh",
|
"prepare": "sh ./scripts/build.sh",
|
||||||
"publish": "sh ./scripts/publish.sh",
|
"publish": "sh ./scripts/publish.sh",
|
||||||
"postpublish": "sh ./scripts/postpublish.sh"
|
"postpublish": "sh ./scripts/postpublish.sh"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,17 +1,25 @@
|
|||||||
/*
|
/*
|
||||||
Leaflet.markercluster, Provides Beautiful Animated Marker Clustering functionality for Leaflet, a JS library for interactive maps.
|
* Leaflet.markercluster 1.3.0+master.5b36e91,
|
||||||
https://github.com/Leaflet/Leaflet.markercluster
|
* Provides Beautiful Animated Marker Clustering functionality for Leaflet, a JS library for interactive maps.
|
||||||
(c) 2012-2013, Dave Leaver, smartrak
|
* https://github.com/Leaflet/Leaflet.markercluster
|
||||||
*/
|
* (c) 2012-2017, Dave Leaver, smartrak
|
||||||
(function (window, document, undefined) {/*
|
*/
|
||||||
|
(function (global, factory) {
|
||||||
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
||||||
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
||||||
|
(factory((global.Leaflet = global.Leaflet || {}, global.Leaflet.markercluster = global.Leaflet.markercluster || {})));
|
||||||
|
}(this, (function (exports) { 'use strict';
|
||||||
|
|
||||||
|
/*
|
||||||
* L.MarkerClusterGroup extends L.FeatureGroup by clustering the markers contained within
|
* L.MarkerClusterGroup extends L.FeatureGroup by clustering the markers contained within
|
||||||
*/
|
*/
|
||||||
|
|
||||||
L.MarkerClusterGroup = L.FeatureGroup.extend({
|
var MarkerClusterGroup = L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
maxClusterRadius: 80, //A cluster will cover at most this many pixels from its center
|
maxClusterRadius: 80, //A cluster will cover at most this many pixels from its center
|
||||||
iconCreateFunction: null,
|
iconCreateFunction: null,
|
||||||
|
clusterPane: L.Marker.prototype.options.pane,
|
||||||
|
|
||||||
spiderfyOnMaxZoom: true,
|
spiderfyOnMaxZoom: true,
|
||||||
showCoverageOnHover: true,
|
showCoverageOnHover: true,
|
||||||
@@ -54,9 +62,6 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
|||||||
if (!this.options.iconCreateFunction) {
|
if (!this.options.iconCreateFunction) {
|
||||||
this.options.iconCreateFunction = this._defaultIconCreateFunction;
|
this.options.iconCreateFunction = this._defaultIconCreateFunction;
|
||||||
}
|
}
|
||||||
if (!this.options.clusterPane) {
|
|
||||||
this.options.clusterPane = L.Marker.prototype.options.pane;
|
|
||||||
}
|
|
||||||
|
|
||||||
this._featureGroup = L.featureGroup();
|
this._featureGroup = L.featureGroup();
|
||||||
this._featureGroup.addEventParent(this);
|
this._featureGroup.addEventParent(this);
|
||||||
@@ -505,7 +510,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
|||||||
//Overrides LayerGroup.getLayer, WARNING: Really bad performance
|
//Overrides LayerGroup.getLayer, WARNING: Really bad performance
|
||||||
getLayer: function (id) {
|
getLayer: function (id) {
|
||||||
var result = null;
|
var result = null;
|
||||||
|
|
||||||
id = parseInt(id, 10);
|
id = parseInt(id, 10);
|
||||||
|
|
||||||
this.eachLayer(function (l) {
|
this.eachLayer(function (l) {
|
||||||
@@ -719,7 +724,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
|||||||
}
|
}
|
||||||
delete e.target.__dragStart;
|
delete e.target.__dragStart;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
//Internal function for removing a marker from everything.
|
//Internal function for removing a marker from everything.
|
||||||
//dontUpdateMap: set to true if you will handle updating the map manually (for bulk functions)
|
//dontUpdateMap: set to true if you will handle updating the map manually (for bulk functions)
|
||||||
@@ -933,7 +938,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
|||||||
minZoom = Math.floor(this._map.getMinZoom()),
|
minZoom = Math.floor(this._map.getMinZoom()),
|
||||||
radius = this.options.maxClusterRadius,
|
radius = this.options.maxClusterRadius,
|
||||||
radiusFn = radius;
|
radiusFn = radius;
|
||||||
|
|
||||||
//If we just set maxClusterRadius to a single number, we need to create
|
//If we just set maxClusterRadius to a single number, we need to create
|
||||||
//a simple function to return that number. Otherwise, we just have to
|
//a simple function to return that number. Otherwise, we just have to
|
||||||
//use the function we've passed in.
|
//use the function we've passed in.
|
||||||
@@ -947,7 +952,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
|||||||
this._maxZoom = maxZoom;
|
this._maxZoom = maxZoom;
|
||||||
this._gridClusters = {};
|
this._gridClusters = {};
|
||||||
this._gridUnclustered = {};
|
this._gridUnclustered = {};
|
||||||
|
|
||||||
//Set up DistanceGrids for each zoom
|
//Set up DistanceGrids for each zoom
|
||||||
for (var zoom = maxZoom; zoom >= minZoom; zoom--) {
|
for (var zoom = maxZoom; zoom >= minZoom; zoom--) {
|
||||||
this._gridClusters[zoom] = new L.DistanceGrid(radiusFn(zoom));
|
this._gridClusters[zoom] = new L.DistanceGrid(radiusFn(zoom));
|
||||||
@@ -1378,8 +1383,9 @@ L.markerClusterGroup = function (options) {
|
|||||||
return new L.MarkerClusterGroup(options);
|
return new L.MarkerClusterGroup(options);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var MarkerCluster = L.MarkerCluster = L.Marker.extend({
|
||||||
|
options: L.Icon.prototype.options,
|
||||||
|
|
||||||
L.MarkerCluster = L.Marker.extend({
|
|
||||||
initialize: function (group, zoom, a, b) {
|
initialize: function (group, zoom, a, b) {
|
||||||
|
|
||||||
L.Marker.prototype.initialize.call(this, a ? (a._cLatLng || a.getLatLng()) : new L.LatLng(0, 0),
|
L.Marker.prototype.initialize.call(this, a ? (a._cLatLng || a.getLatLng()) : new L.LatLng(0, 0),
|
||||||
@@ -1777,8 +1783,6 @@ L.MarkerCluster = L.Marker.extend({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Extends L.Marker to include two extra methods: clusterHide and clusterShow.
|
* Extends L.Marker to include two extra methods: clusterHide and clusterShow.
|
||||||
*
|
*
|
||||||
@@ -1803,10 +1807,6 @@ L.Marker.include({
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
L.DistanceGrid = function (cellSize) {
|
L.DistanceGrid = function (cellSize) {
|
||||||
this._cellSize = cellSize;
|
this._cellSize = cellSize;
|
||||||
this._sqCellSize = cellSize * cellSize;
|
this._sqCellSize = cellSize * cellSize;
|
||||||
@@ -1900,7 +1900,8 @@ L.DistanceGrid.prototype = {
|
|||||||
for (k = 0, len = cell.length; k < len; k++) {
|
for (k = 0, len = cell.length; k < len; k++) {
|
||||||
obj = cell[k];
|
obj = cell[k];
|
||||||
dist = this._sqDist(objectPoint[L.Util.stamp(obj)], point);
|
dist = this._sqDist(objectPoint[L.Util.stamp(obj)], point);
|
||||||
if (dist < closestDistSq) {
|
if (dist < closestDistSq ||
|
||||||
|
dist <= closestDistSq && closest === null) {
|
||||||
closestDistSq = dist;
|
closestDistSq = dist;
|
||||||
closest = obj;
|
closest = obj;
|
||||||
}
|
}
|
||||||
@@ -1913,7 +1914,8 @@ L.DistanceGrid.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_getCoord: function (x) {
|
_getCoord: function (x) {
|
||||||
return Math.floor(x / this._cellSize);
|
var coord = Math.floor(x / this._cellSize);
|
||||||
|
return isFinite(coord) ? coord : x;
|
||||||
},
|
},
|
||||||
|
|
||||||
_sqDist: function (p, p2) {
|
_sqDist: function (p, p2) {
|
||||||
@@ -1923,7 +1925,6 @@ L.DistanceGrid.prototype = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* Copyright (c) 2012 the authors listed at the following URL, and/or
|
/* Copyright (c) 2012 the authors listed at the following URL, and/or
|
||||||
the authors of referenced articles or incorporated external code:
|
the authors of referenced articles or incorporated external code:
|
||||||
http://en.literateprograms.org/Quickhull_(Javascript)?action=history&offset=20120410175256
|
http://en.literateprograms.org/Quickhull_(Javascript)?action=history&offset=20120410175256
|
||||||
@@ -2090,7 +2091,6 @@ L.MarkerCluster.include({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
//This code is 100% based on https://github.com/jawj/OverlappingMarkerSpiderfier-Leaflet
|
//This code is 100% based on https://github.com/jawj/OverlappingMarkerSpiderfier-Leaflet
|
||||||
//Huge thanks to jawj for implementing it first to make my job easy :-)
|
//Huge thanks to jawj for implementing it first to make my job easy :-)
|
||||||
|
|
||||||
@@ -2098,7 +2098,7 @@ L.MarkerCluster.include({
|
|||||||
|
|
||||||
_2PI: Math.PI * 2,
|
_2PI: Math.PI * 2,
|
||||||
_circleFootSeparation: 25, //related to circumference of circle
|
_circleFootSeparation: 25, //related to circumference of circle
|
||||||
_circleStartAngle: Math.PI / 6,
|
_circleStartAngle: 0,
|
||||||
|
|
||||||
_spiralFootSeparation: 28, //related to size of spiral (experiment!)
|
_spiralFootSeparation: 28, //related to size of spiral (experiment!)
|
||||||
_spiralLengthStart: 11,
|
_spiralLengthStart: 11,
|
||||||
@@ -2150,9 +2150,11 @@ L.MarkerCluster.include({
|
|||||||
res = [],
|
res = [],
|
||||||
i, angle;
|
i, angle;
|
||||||
|
|
||||||
|
legLength = Math.max(legLength, 35); // Minimum distance to get outside the cluster icon.
|
||||||
|
|
||||||
res.length = count;
|
res.length = count;
|
||||||
|
|
||||||
for (i = count - 1; i >= 0; i--) {
|
for (i = 0; i < count; i++) { // Clockwise, like spiral.
|
||||||
angle = this._circleStartAngle + i * angleStep;
|
angle = this._circleStartAngle + i * angleStep;
|
||||||
res[i] = new L.Point(centerPt.x + legLength * Math.cos(angle), centerPt.y + legLength * Math.sin(angle))._round();
|
res[i] = new L.Point(centerPt.x + legLength * Math.cos(angle), centerPt.y + legLength * Math.sin(angle))._round();
|
||||||
}
|
}
|
||||||
@@ -2172,9 +2174,13 @@ L.MarkerCluster.include({
|
|||||||
res.length = count;
|
res.length = count;
|
||||||
|
|
||||||
// Higher index, closer position to cluster center.
|
// Higher index, closer position to cluster center.
|
||||||
for (i = count - 1; i >= 0; i--) {
|
for (i = count; i >= 0; i--) {
|
||||||
|
// Skip the first position, so that we are already farther from center and we avoid
|
||||||
|
// being under the default cluster icon (especially important for Circle Markers).
|
||||||
|
if (i < count) {
|
||||||
|
res[i] = new L.Point(centerPt.x + legLength * Math.cos(angle), centerPt.y + legLength * Math.sin(angle))._round();
|
||||||
|
}
|
||||||
angle += separation / legLength + i * 0.0005;
|
angle += separation / legLength + i * 0.0005;
|
||||||
res[i] = new L.Point(centerPt.x + legLength * Math.cos(angle), centerPt.y + legLength * Math.sin(angle))._round();
|
|
||||||
legLength += lengthFactor / angle;
|
legLength += lengthFactor / angle;
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
@@ -2561,7 +2567,6 @@ L.MarkerClusterGroup.include({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds 1 public method to MCG and 1 to L.Marker to facilitate changing
|
* Adds 1 public method to MCG and 1 to L.Marker to facilitate changing
|
||||||
* markers' icon options and refreshing their icon and their parent clusters
|
* markers' icon options and refreshing their icon and their parent clusters
|
||||||
@@ -2673,5 +2678,8 @@ L.Marker.include({
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
exports.MarkerClusterGroup = MarkerClusterGroup;
|
||||||
|
exports.MarkerCluster = MarkerCluster;
|
||||||
|
|
||||||
}(window, document));
|
})));
|
||||||
|
//# sourceMappingURL=leaflet.markercluster-src.js.map
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
122
assets/leaflet-pm/leaflet.pm.css
Normal file
122
assets/leaflet-pm/leaflet.pm.css
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
.marker-icon,
|
||||||
|
.marker-icon:focus {
|
||||||
|
background-color: #ffffff;
|
||||||
|
border: 1px solid #3388ff;
|
||||||
|
border-radius: 50%;
|
||||||
|
margin: -8px 0 0 -8px !important;
|
||||||
|
width: 14px !important;
|
||||||
|
height: 14px !important;
|
||||||
|
outline: 0;
|
||||||
|
transition: opacity ease 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.marker-icon-middle,
|
||||||
|
.marker-icon-middle:focus {
|
||||||
|
opacity: 0.7;
|
||||||
|
margin: -6px 0 0 -6px !important;
|
||||||
|
width: 10px !important;
|
||||||
|
height: 10px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-pm-draggable {
|
||||||
|
cursor: move !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cursor-marker {
|
||||||
|
cursor: crosshair;
|
||||||
|
pointer-events: none;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cursor-marker.visible {
|
||||||
|
display: block !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-pm-invalid {
|
||||||
|
stroke: red;
|
||||||
|
transition: fill ease 0s, stroke ease 0s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rect-style-marker,
|
||||||
|
.rect-start-marker {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rect-style-marker.visible,
|
||||||
|
.rect-start-marker.visible {
|
||||||
|
opacity: 1 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.hidden {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.leaflet-pm-toolbar {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-pm-toolbar .leaflet-buttons-control-button {
|
||||||
|
padding: 3px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
.leaflet-pm-toolbar .control-icon {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
opacity: .8;
|
||||||
|
background-size: contain;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-pm-toolbar .leaflet-pm-icon-marker {
|
||||||
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAZCAYAAADTyxWqAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABAhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ1dWlkOjY1RTYzOTA2ODZDRjExREJBNkUyRDg4N0NFQU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wRkQwODFEOUZEMEE3IiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE1IChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MTk5NzA1OGEtZDI3OC00NDZkLWE4ODgtNGM4MGQ4YWI1NzNmIiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6YzRkZmQxMGMtY2NlNS0xMTc4LWE5OGQtY2NkZmM5ODk5YWYwIi8+IDxkYzp0aXRsZT4gPHJkZjpBbHQ+IDxyZGY6bGkgeG1sOmxhbmc9IngtZGVmYXVsdCI+Z2x5cGhpY29uczwvcmRmOmxpPiA8L3JkZjpBbHQ+IDwvZGM6dGl0bGU+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+KUUD2gAAAJhJREFUeNq01dsNwCAIhWHZyO4/RDtKN6DwYKP2ouDBhNhL8n+PEDMn5CGiJkgRgBwqz1BAglmuvQaSAoiRo/FThpsJiOud73+R8WVgFF8CZuJuYDbuAixxM2CNmwBPfBrwxqeAlfgQWI3/Aoj4J4CKvwLI+ANAxxsgIl6WGXcDi+voamt2qFybvB+wNdoD5RkK1B/QwCXAAMyWX2PeMm23AAAAAElFTkSuQmCC);
|
||||||
|
background-size: 80%;
|
||||||
|
}
|
||||||
|
.leaflet-pm-toolbar .leaflet-pm-icon-circle {
|
||||||
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABAhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4O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5YWYwIi8+IDxkYzp0aXRsZT4gPHJkZjpBbHQ+IDxyZGY6bGkgeG1sOmxhbmc9IngtZGVmYXVsdCI+Z2x5cGhpY29uczwvcmRmOmxpPiA8L3JkZjpBbHQ+IDwvZGM6dGl0bGU+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+J3lsvQAAAFpJREFUeNrsljsOACAIQ1sPyGG9IJq4IKOfQdNuhuQ90gUJwBHi7sRGSE48DuaA5uFqIq/gcpgr6rFNZo2Pkjq3A0tbrOp6RRJIIIEEEjxxcD68yae/LU2AAQC7fSa9H1rL6AAAAABJRU5ErkJggg==);
|
||||||
|
background-size: 90%;
|
||||||
|
}
|
||||||
|
.leaflet-pm-toolbar .leaflet-pm-icon-drag {
|
||||||
|
/*background-image: url('../assets/icons/drag.png');*/
|
||||||
|
}
|
||||||
|
.leaflet-pm-toolbar .leaflet-pm-icon-delete {
|
||||||
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAaCAYAAAC3g3x9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABAhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6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L/+NQz4TDkAwOZAGQ7SDM/A3XARyYGKgOskUIRgBr4AU8SIRZ/gCcbQjFHguMYqR6G2AzMhmJyxLAm7McUiDHQxcujBo4aOOQNxJb1ZCkQG6LFF9kVFIgACDAAqr5rFp6MjMcAAAAASUVORK5CYII=);
|
||||||
|
background-size: 70%;
|
||||||
|
}
|
||||||
|
.leaflet-pm-toolbar .leaflet-pm-icon-edit {
|
||||||
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAVCAYAAABc6S4mAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABAhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1wTU06T3JpZ2luYWxEb2N1bWVudElEPSJ1dWlkOjY1RTYzOTA2ODZDRjExREJBNkUyRDg4N0NFQUNCNDA3I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9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE1IChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MTk5NzA1OGEtZDI3OC00NDZkLWE4ODgtNGM4MGQ4YWI1NzNmIiBzdFJlZjpkb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6YzRkZmQxMGMtY2NlNS0xMTc4LWE5OGQtY2NkZmM5ODk5YWYwIi8+IDxkYzp0aXRsZT4gPHJkZjpBbHQ+IDxyZGY6bGkgeG1sOmxhbmc9IngtZGVmYXVsdCI+Z2x5cGhpY29uczwvcmRmOmxpPiA8L3JkZjpBbHQ+IDwvZGM6dGl0bGU+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+UbC4LAAAATFJREFUeNrUVosRgyAMhU5gN3AER3AER2AER7AbOIIjdAS7gSO4Qd2AEu+ll6JYP9i75i4nIrxHkgeorbVKa50opYxzevbO765/ULGMSJy11BROBBV9i+FkuQBu8GSyOhYJR1GJzpqJYpBogJFduQ6o0RPp1EdLIkluSA8T2T0kWGDhPEVX85EaLjiUtjpdACxnBETe8aAS0vUH2AXgDAucnQdvR2F5E83MJHo3YkzuKTAI/p4TWKUZw5ySVdiwKaLwySj/2QTvS65zkedBOJMlaBN4GsRZWViL6IwnknoJfG0kmSAZFmqxPRKvJgYpGbYAB0kC6urE9wJy51O7F5HaUHv3Ptl6QB7e8WtImGCUpaeo/zmFL84faJeiv1KR7fyb8Rd3vObquzqUZ/2tvAQYANwXksvfGBuLAAAAAElFTkSuQmCC);
|
||||||
|
background-size: 80%;
|
||||||
|
background-position: 4px center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-buttons-control-button:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
background-color: #f4f4f4;
|
||||||
|
}
|
||||||
|
.leaflet-buttons-control-button.active {
|
||||||
|
background-color: #f4f4f4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-buttons-control-button.active > .control-icon {
|
||||||
|
opacity: .5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.leaflet-buttons-control-text-hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
1
assets/leaflet-pm/leaflet.pm.min.js
vendored
Normal file
1
assets/leaflet-pm/leaflet.pm.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.4 KiB |
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -47,6 +47,7 @@
|
|||||||
.leaflet-container .leaflet-tile-pane img,
|
.leaflet-container .leaflet-tile-pane img,
|
||||||
.leaflet-container img.leaflet-image-layer {
|
.leaflet-container img.leaflet-image-layer {
|
||||||
max-width: none !important;
|
max-width: none !important;
|
||||||
|
max-height: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-container.leaflet-touch-zoom {
|
.leaflet-container.leaflet-touch-zoom {
|
||||||
@@ -55,7 +56,10 @@
|
|||||||
}
|
}
|
||||||
.leaflet-container.leaflet-touch-drag {
|
.leaflet-container.leaflet-touch-drag {
|
||||||
-ms-touch-action: pinch-zoom;
|
-ms-touch-action: pinch-zoom;
|
||||||
}
|
/* Fallback for FF which doesn't support pinch-zoom */
|
||||||
|
touch-action: none;
|
||||||
|
touch-action: pinch-zoom;
|
||||||
|
}
|
||||||
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
|
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
|
||||||
-ms-touch-action: none;
|
-ms-touch-action: none;
|
||||||
touch-action: none;
|
touch-action: none;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
assets/leaflet/leaflet.min.css
vendored
2
assets/leaflet/leaflet.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -3,7 +3,7 @@
|
|||||||
"description":"Javascript libraries for the Leaflet maps integration for Contao",
|
"description":"Javascript libraries for the Leaflet maps integration for Contao",
|
||||||
"keywords":["contao", "maps", "leaflet"],
|
"keywords":["contao", "maps", "leaflet"],
|
||||||
"type":"contao-module",
|
"type":"contao-module",
|
||||||
"license":"LGPL-3.0+",
|
"license":"LGPL-3.0-or-later",
|
||||||
"authors":[
|
"authors":[
|
||||||
{
|
{
|
||||||
"name":"David Molineus",
|
"name":"David Molineus",
|
||||||
@@ -27,8 +27,8 @@
|
|||||||
},
|
},
|
||||||
"extra":{
|
"extra":{
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "1.0.x-dev",
|
"dev-master": "1.3.x-dev",
|
||||||
"dev-develop": "1.1.x-dev",
|
"dev-develop": "1.4.x-dev",
|
||||||
"dev-support/0.7.x": "0.7.x-dev"
|
"dev-support/0.7.x": "0.7.x-dev"
|
||||||
},
|
},
|
||||||
"contao": {
|
"contao": {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
$GLOBALS['LEAFLET_LIBRARIES']['leaflet'] = array
|
$GLOBALS['LEAFLET_LIBRARIES']['leaflet'] = array
|
||||||
(
|
(
|
||||||
'name' => 'Leaflet',
|
'name' => 'Leaflet',
|
||||||
'version' => '1.2.0',
|
'version' => '1.3.1',
|
||||||
'license' => '<a href="https://github.com/Leaflet/Leaflet/blob/master/LICENSE" target="_blank">BSD-2-Clause</a>',
|
'license' => '<a href="https://github.com/Leaflet/Leaflet/blob/master/LICENSE" target="_blank">BSD-2-Clause</a>',
|
||||||
'homepage' => 'http://leafletjs.com',
|
'homepage' => 'http://leafletjs.com',
|
||||||
'css' => 'assets/leaflet/libs/leaflet/leaflet.min.css',
|
'css' => 'assets/leaflet/libs/leaflet/leaflet.min.css',
|
||||||
@@ -36,7 +36,7 @@ $GLOBALS['LEAFLET_LIBRARIES']['leaflet-providers'] = array
|
|||||||
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-markercluster'] = array
|
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-markercluster'] = array
|
||||||
(
|
(
|
||||||
'name' => 'Leaflet.markercluster',
|
'name' => 'Leaflet.markercluster',
|
||||||
'version' => '1.1.0',
|
'version' => '1.3.0',
|
||||||
'license' => '<a href="https://github.com/Leaflet/Leaflet.markercluster/blob/master/MIT-LICENCE.txt" target="_blank">MIT</a>',
|
'license' => '<a href="https://github.com/Leaflet/Leaflet.markercluster/blob/master/MIT-LICENCE.txt" target="_blank">MIT</a>',
|
||||||
'homepage' => 'https://github.com/Leaflet/Leaflet.markercluster',
|
'homepage' => 'https://github.com/Leaflet/Leaflet.markercluster',
|
||||||
'css' => 'assets/leaflet/libs/leaflet-markercluster/MarkerCluster.css',
|
'css' => 'assets/leaflet/libs/leaflet-markercluster/MarkerCluster.css',
|
||||||
@@ -75,7 +75,7 @@ $GLOBALS['LEAFLET_LIBRARIES']['leaflet-fullscreen'] = array
|
|||||||
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-control-geocoder'] = array
|
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-control-geocoder'] = array
|
||||||
(
|
(
|
||||||
'name' => 'Leaflet Control Geocoder',
|
'name' => 'Leaflet Control Geocoder',
|
||||||
'version' => '1.5.5',
|
'version' => '1.5.8',
|
||||||
'license' => '<a href="https://github.com/perliedman/leaflet-control-geocoder/blob/master/LICENSE" target="_blank">BSD-2-Clause</a>',
|
'license' => '<a href="https://github.com/perliedman/leaflet-control-geocoder/blob/master/LICENSE" target="_blank">BSD-2-Clause</a>',
|
||||||
'homepage' => 'https://github.com/perliedman/leaflet-control-geocoder',
|
'homepage' => 'https://github.com/perliedman/leaflet-control-geocoder',
|
||||||
'css' => 'assets/leaflet/libs/control-geocoder/Control.Geocoder.min.css',
|
'css' => 'assets/leaflet/libs/control-geocoder/Control.Geocoder.min.css',
|
||||||
@@ -92,6 +92,16 @@ $GLOBALS['LEAFLET_LIBRARIES']['leaflet-extra-markers'] = array
|
|||||||
'javascript' => 'assets/leaflet/libs/leaflet-extra-markers/js/leaflet.extra-markers.min.js'
|
'javascript' => 'assets/leaflet/libs/leaflet-extra-markers/js/leaflet.extra-markers.min.js'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$GLOBALS['LEAFLET_LIBRARIES']['leaflet-pm'] = array
|
||||||
|
(
|
||||||
|
'name' => 'leaflet.pm',
|
||||||
|
'version' => '0.23.1',
|
||||||
|
'license' => '<a href="https://github.com/codeofsumit/leaflet.pm/blob/develop/LICENSE" target="_blank">MIT</a>',
|
||||||
|
'homepage' => 'https://github.com/codeofsumit/leaflet.pm',
|
||||||
|
'css' => 'assets/leaflet/libs/leaflet-pm/leaflet.pm.css',
|
||||||
|
'javascript' => 'assets/leaflet/libs/leaflet-pm/leaflet.pm.min.js'
|
||||||
|
);
|
||||||
|
|
||||||
$GLOBALS['LEAFLET_LIBRARIES']['osmtogeojson'] = array
|
$GLOBALS['LEAFLET_LIBRARIES']['osmtogeojson'] = array
|
||||||
(
|
(
|
||||||
'name' => 'osmtogeojson',
|
'name' => 'osmtogeojson',
|
||||||
|
|||||||
Reference in New Issue
Block a user