debugging select hover control
This commit is contained in:
parent
c918ef2cfc
commit
7c4f092c7b
|
@ -169,12 +169,14 @@ var API_BASE = "/1.0/",
|
||||||
|
|
||||||
function onFeatureSelect(feature) {
|
function onFeatureSelect(feature) {
|
||||||
var slug = feature.attributes.slug;
|
var slug = feature.attributes.slug;
|
||||||
|
alert("selected " + slug);
|
||||||
var matchedStops = $('.' + slug);
|
var matchedStops = $('.' + slug);
|
||||||
matchedStops.addClass('highlightedStop');
|
matchedStops.addClass('highlightedStop');
|
||||||
}
|
}
|
||||||
|
|
||||||
function onFeatureUnselect(feature) {
|
function onFeatureUnselect(feature) {
|
||||||
var slug = feature.attributes.slug;
|
var slug = feature.attributes.slug;
|
||||||
|
alert("unselected " + slug);
|
||||||
var matchedStops = $('.' + slug);
|
var matchedStops = $('.' + slug);
|
||||||
matchedStops.removeClass('highlightedStop');
|
matchedStops.removeClass('highlightedStop');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user