[Commits] r322 - apps/opengeo/geoexplorer/trunk/lib
commits at geoext.org
commits at geoext.org
Wed Apr 1 22:08:47 CEST 2009
Author: sbenthall
Date: 2009-04-01 22:08:47 +0200 (Wed, 01 Apr 2009)
New Revision: 322
Modified:
apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
Log:
Bookmark tool now gives user a URL for bookmark
Modified: apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js
===================================================================
--- apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-04-01 20:04:07 UTC (rev 321)
+++ apps/opengeo/geoexplorer/trunk/lib/GeoExplorer.js 2009-04-01 20:08:47 UTC (rev 322)
@@ -265,6 +265,11 @@
var toolGroup = "toolGroup";
var toolbarItems = [
new Ext.Button({
+ text: "Bookmark",
+ handler: this.bookmark,
+ scope: this
+ }),
+ new Ext.Button({
text: "GetFeatureInfo",
enableToggle: true,
toggleGroup: toolGroup,
@@ -313,6 +318,20 @@
document.location.hostname +
document.location.pathname + "?" + query;
+ var html =
+ "<form>" +
+ "<p>You can come back to this map later using " +
+ "the following URL:</p>" +
+ "<input type='text' readonly='' value='" + url +"'>"
+ "</input></form>";
+
+ var win = new Ext.Window({
+ title: "Bookmark URL",
+ html: html
+ });
+
+ win.show();
+
return url;
},
More information about the Commits
mailing list