From d5091f820adcb76c8437a39aeda9420e482257f0 Mon Sep 17 00:00:00 2001 From: Toni Martinez Date: Thu, 19 Jan 2017 16:49:15 +0100 Subject: [PATCH] Fix error on leaflet-marker to get leafleat-icon and leaflet-divicon components when leaflet-map is not use on main document --- leaflet-marker.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leaflet-marker.html b/leaflet-marker.html index eb60d4a..ea32678 100644 --- a/leaflet-marker.html +++ b/leaflet-marker.html @@ -699,7 +699,7 @@ var iconOption; if (this.icon) { if (typeof this.icon == "string") { - var iconElement = document.getElementById(this.icon); + var iconElement = Polymer.dom(this.parentNode).querySelector('#'+this.icon); if (iconElement != null) { if (iconElement.getIcon) { iconOption = iconElement.getIcon();