Am 02.05.2012 10:09, schrieb sacprasanna:
Hi all,
I am new to open layers want to deverlop web map just like this
http://dev.openlayers.org/releases/OpenLayers-2.11/examples/getfeatureinfo-popup.html.
Then i copy source code and css code from above site and replace my
geoserver code.After running it shows map but when click does not show any
thing.Pls give me some advise.This is my code.
<!DOCTYPE html>
<html lang='en'>
<head>
<title>My OpenLayers Map</title>
<link rel="stylesheet" href="1.css" type="text/css">
<link rel="stylesheet" href="2.css" type="text/css">
</head>
</head>
<body onload="init()">
Feature Info in Popup
<div id="tags">
WMS, GetFeatureInfo, popup
</div>
<p id="shortdesc">
Demonstrates the WMSGetFeatureInfo control for fetching information
about a position from WMS (via GetFeatureInfo request). Results
are displayed in a popup.
</p>
<div id="map_element" class="smallmap"></div>
<div id="docs"></div>
</body>
</html>
--
View this message in context:
http://osgeo-org.1560.n6.nabble.com/WMSGetFeatureInfo-problem-Pls-give-me-some-advise-tp4945565.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users
Hi,
your code is missing the OpenLayers Javascript and your map Javascript.
No wonder that there's nothing to see ;-) - and you close the HTML head
two times ...
Frank
--
Frank BRONIEWSKI
METRICO s.à r.l.
géomètres
technologies d'information géographique
rue des Romains 36
L-5433 NIEDERDONVEN
tél.: +352 26 74 94 - 28
fax.: +352 26 74 94 99
http://www.metrico.lu
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users