small tweaks

This commit is contained in:
jllord 2013-05-28 20:15:44 -07:00
parent 03688d0f09
commit 476481c837

View File

@ -151,7 +151,7 @@
//}) //})
function highlightLastMarker(geoJSON, highlightColor) { function highlightLastMarker(geoJSON, highlightColor) {
geoJSON.reverse()[0].properties["marker-color"] = highlightColor geoJSON[0].properties["marker-color"] = highlightColor
return geoJSON return geoJSON
} }
@ -184,7 +184,7 @@
$('#selectedSpot').html(selectedSpot).css("display", "inline") $('#selectedSpot').html(selectedSpot).css("display", "inline")
var feature = e.layer.feature var feature = e.layer.feature
var popupContent = '<h2>' + feature.opts.name + '</h2>' var popupContent = '<h2>' + feature.opts.name + '</h2>'
e.layer.bindPopup(popupContent,{closeButton: true,}) e.layer.bindPopup(popupContent,{closeButton: false,})
}) })
} }
// .addControl(L.mapbox.geocoderControl('examples.map-vyofok3q')); // .addControl(L.mapbox.geocoderControl('examples.map-vyofok3q'));