[Mapbender-commits] r6133 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon May 10 05:34:03 EDT 2010
Author: kmq
Date: 2010-05-10 05:34:01 -0400 (Mon, 10 May 2010)
New Revision: 6133
Modified:
trunk/mapbender/http/plugins/mb_loadkmlgeorss.js
Log:
shop popup with description when result in georss/kml list is clicked
Modified: trunk/mapbender/http/plugins/mb_loadkmlgeorss.js
===================================================================
--- trunk/mapbender/http/plugins/mb_loadkmlgeorss.js 2010-05-10 09:00:11 UTC (rev 6132)
+++ trunk/mapbender/http/plugins/mb_loadkmlgeorss.js 2010-05-10 09:34:01 UTC (rev 6133)
@@ -66,7 +66,7 @@
"OK" : function(){
var url = $('#' + options.id + '_url').val();
$('#' + options.id + '_url').val("");
- var $dialog = $(this);
+ $(this).dialog("close");
if($("input:checked",$dialog).val() == "GeoRSS"){
var endpointURL = "../php/geoRSSToGeoJSON.php";
@@ -99,6 +99,12 @@
if(data.features[i].properties.iconurl){
markeroptions.img = {url: data.features[i].properties.iconurl, offset: {x:0,y:0}} ;
}
+ $row.click((function(description){
+ return function(){
+ $("<div>"+ description + "</div>").dialog({autoOpen: true, buttons: { "OK": function(){ $(this).dialog("close");$(this).dialog("destroy"); } } } );
+ }
+ })(data.features[i].properties.description));
+ $("tbody",$table).append($row);
var x = data.features[i].geometry.coordinates[0];
var y = data.features[i].geometry.coordinates[1];
More information about the Mapbender_commits
mailing list