Fix the broken initial location
This commit is contained in:
parent
ba63ac7248
commit
f5b2ba6a06
4 changed files with 19 additions and 11 deletions
|
@ -257,9 +257,14 @@ export class FilteredLayer {
|
|||
// We monky-patch the feature element with an update-style
|
||||
feature.updateStyle = () => {
|
||||
if (layer.setIcon) {
|
||||
const icon = self._style(feature.properties).icon;
|
||||
const style = self._style(feature.properties);
|
||||
const icon = style.icon;
|
||||
if (icon.iconUrl) {
|
||||
layer.setIcon(L.icon(icon))
|
||||
if (icon.iconUrl.startsWith("$circle")) {
|
||||
// pass
|
||||
} else {
|
||||
layer.setIcon(L.icon(icon))
|
||||
}
|
||||
}
|
||||
} else {
|
||||
self._geolayer.setStyle(function (featureX) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue