feed link
This commit is contained in:
parent
03146ae756
commit
50ae6b00b3
|
@ -1,5 +1,6 @@
|
|||
$(function() {
|
||||
$('.mapListSection').css({'opacity': 0});
|
||||
$('#jsonLink').hide();
|
||||
map = new OpenLayers.Map('map', {});
|
||||
var baseLayer = new OpenLayers.Layer.OSM( "Openstreetmap Base Layer");
|
||||
// map.addLayer(baseLayer);
|
||||
|
@ -39,6 +40,8 @@ $(function() {
|
|||
$('#searchTerm').text(search_term);
|
||||
$('#searchField').attr("disabled", "disabled");
|
||||
$('#mapList tbody').empty();
|
||||
var url = "/feature/search.json?" + 'bbox=' + bbox + '&q=' + search_term + '&srid=' + '3785' + '&count=20&page=' + $('#page_no').val();
|
||||
$('#jsonLink').attr("href", url);
|
||||
$.getJSON("/feature/search.json", {
|
||||
'bbox': bbox,
|
||||
'q': search_term,
|
||||
|
@ -49,6 +52,7 @@ $(function() {
|
|||
}, function(features) {
|
||||
if ($('.mapListSection').css("opacity") == '0') {
|
||||
$('.mapListSection').animate({'opacity': '1'}, 1000);
|
||||
$('#jsonLink').show();
|
||||
}
|
||||
if (features.hasOwnProperty("error") && features.error != '') {
|
||||
alert(features.error);
|
||||
|
|
Loading…
Reference in New Issue
Block a user