minor, var cleanup + add TODO for render on map
This commit is contained in:
parent
974a57ee1a
commit
087b2e5ab9
|
@ -47,9 +47,10 @@ $(function() {
|
||||||
var url = API_BASE + name + "/" + $target.text();
|
var url = API_BASE + name + "/" + $target.text();
|
||||||
$target.data("loading", true);
|
$target.data("loading", true);
|
||||||
var $loading = $('<span />').addClass("loadingSpan").text("Loading...").appendTo($target);
|
var $loading = $('<span />').addClass("loadingSpan").text("Loading...").appendTo($target);
|
||||||
$.getJSON(url, {}, function(area) {
|
$.getJSON(url, {}, function(obj) {
|
||||||
$loading.remove();
|
$loading.remove();
|
||||||
var stops = area.stops.features;
|
var stopsGeojson = obj.stops; //TODO: render filtered geojson with known geometries on map
|
||||||
|
var stops = stopsGeojson.features;
|
||||||
var $stopsList = getStopsList(stops);
|
var $stopsList = getStopsList(stops);
|
||||||
$target.append($stopsList);
|
$target.append($stopsList);
|
||||||
$target.data("hasList", true);
|
$target.data("hasList", true);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user