Skip to content

Commit

Permalink
map-link
Browse files Browse the repository at this point in the history
- add <g>._featureEl reference to map-feature from its rendered self
  • Loading branch information
prushforth committed Feb 16, 2024
1 parent 868db5b commit 564f36a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mapml/layers/FeatureLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ export var FeatureLayer = L.FeatureGroup.extend({
groupOptions = {},
svgGroup = L.SVG.create('g'),
copyOptions = Object.assign({}, vectorOptions);
svgGroup._featureEl = feature; // rendered <g> has a reference to map-feature
if (geometry) {
for (let geo of geometry.querySelectorAll(
'map-polygon, map-linestring, map-multilinestring, map-point, map-multipoint'
Expand Down

0 comments on commit 564f36a

Please sign in to comment.