diff --git a/index.html b/index.html index 1e1aa00..54a2618 100644 --- a/index.html +++ b/index.html @@ -151,7 +151,7 @@ //}) function highlightLastMarker(geoJSON, highlightColor) { - geoJSON.reverse()[0].properties["marker-color"] = highlightColor + geoJSON[0].properties["marker-color"] = highlightColor return geoJSON } @@ -184,7 +184,7 @@ $('#selectedSpot').html(selectedSpot).css("display", "inline") var feature = e.layer.feature var popupContent = '