Don't need to have modifier -- just display on every click.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1485 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<script src="http://openlayers.org/api/2.1-rc2/OpenLayers.js"></script>
|
<script src="../lib/OpenLayers.js"></script>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
ul, li { padding-left: 0px; margin-left: 0px; }
|
ul, li { padding-left: 0px; margin-left: 0px; }
|
||||||
</style>
|
</style>
|
||||||
@@ -25,7 +25,6 @@ ul, li { padding-left: 0px; margin-left: 0px; }
|
|||||||
map.addControl(new OpenLayers.Control.Permalink($('permalink')));
|
map.addControl(new OpenLayers.Control.Permalink($('permalink')));
|
||||||
map.zoomToMaxExtent();
|
map.zoomToMaxExtent();
|
||||||
map.events.register('click', map, function (e) {
|
map.events.register('click', map, function (e) {
|
||||||
if(e.altKey) {
|
|
||||||
var url = wms.getFullRequestString({
|
var url = wms.getFullRequestString({
|
||||||
REQUEST: "GetFeatureInfo",
|
REQUEST: "GetFeatureInfo",
|
||||||
EXCEPTIONS: "application/vnd.ogc.se_xml",
|
EXCEPTIONS: "application/vnd.ogc.se_xml",
|
||||||
@@ -38,7 +37,6 @@ ul, li { padding-left: 0px; margin-left: 0px; }
|
|||||||
HEIGHT: wms.map.size.h});
|
HEIGHT: wms.map.size.h});
|
||||||
OpenLayers.loadURL(url, '', this, setHTML);
|
OpenLayers.loadURL(url, '', this, setHTML);
|
||||||
Event.stop(e);
|
Event.stop(e);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
function setHTML(response) {
|
function setHTML(response) {
|
||||||
$('nodeList').innerHTML = response.responseText;
|
$('nodeList').innerHTML = response.responseText;
|
||||||
|
|||||||
Reference in New Issue
Block a user