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 = '

' + feature.opts.name + '

' - e.layer.bindPopup(popupContent,{closeButton: true,}) + e.layer.bindPopup(popupContent,{closeButton: false,}) }) } // .addControl(L.mapbox.geocoderControl('examples.map-vyofok3q'));