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