We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 992beb6 commit 875453bCopy full SHA for 875453b
1 file changed
src/mapml/features/geometry.js
@@ -14,14 +14,14 @@ export var Geometry = L.FeatureGroup.extend({
14
L.LayerGroup.prototype.initialize.call(this, layers, options);
15
this._featureEl = this.options.mapmlFeature;
16
17
+ let firstLayer = layers[Object.keys(layers)[0]];
18
+ if (layers.length === 1 && firstLayer.options.link)
19
+ this.options.link = firstLayer.options.link;
20
if (
21
(this.options.onEachFeature && this.options.properties) ||
22
this.options.link
23
) {
24
L.DomUtil.addClass(this.options.group, 'leaflet-interactive');
- let firstLayer = layers[Object.keys(layers)[0]];
- if (layers.length === 1 && firstLayer.options.link)
- this.options.link = firstLayer.options.link;
25
if (this.options.link) {
26
M.Path.prototype.attachLinkHandler.call(
27
this,
0 commit comments