actually fix double selection bug
This commit is contained in:
parent
b36a8f6e76
commit
e345ea7a63
|
@ -321,13 +321,13 @@ var API_BASE = "/1.0/",
|
||||||
// console.log(e.feature);
|
// console.log(e.feature);
|
||||||
var slug = e.feature.attributes.slug;
|
var slug = e.feature.attributes.slug;
|
||||||
//alert("selected " + slug);
|
//alert("selected " + slug);
|
||||||
|
$('.selectedStop').removeClass("selectedStop");
|
||||||
highlightStop(slug);
|
highlightStop(slug);
|
||||||
var stop = e.feature.attributes;
|
var stop = e.feature.attributes;
|
||||||
var geom = {
|
var geom = {
|
||||||
'coordinates': [e.feature.geometry.x, e.feature.geometry.y]
|
'coordinates': [e.feature.geometry.x, e.feature.geometry.y]
|
||||||
};
|
};
|
||||||
var $form = getStopForm(stop, geom);
|
var $form = getStopForm(stop, geom);
|
||||||
$('.selectedStopItem').removeClass("selectedStopItem");
|
|
||||||
$('#stopForm').remove();
|
$('#stopForm').remove();
|
||||||
$('#formCol').empty();
|
$('#formCol').empty();
|
||||||
$('#formCol').append($form);
|
$('#formCol').append($form);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user