[Geoserver-users] question about openlayers demo

I’m trying to recreate a simple openlayer page. The one that is created when you demo a file (e.g., shapefile) in OpenLayers, that allows you to click a feature to pull it’s attributes up in a table.

I copied the source and moved it elsewhere, but now everything works except clicking a feature to view it’s attributes. What link is broken that I can no longer view the attributes?

Hi Scott,

Which version of GeoServer are you using? There was recently (as in yesterday) just an issue with the preview relating to the attributes.

-Justin

Scott wrote:

I'm trying to recreate a simple openlayer page. The one that is created when you demo a file (e.g., shapefile) in OpenLayers, that allows you to click a feature to pull it's attributes up in a table.

I copied the source and moved it elsewhere, but now everything works except clicking a feature to view it's attributes. What link is broken that I can no longer view the attributes?

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
Software Engineer, OpenGeo
http://opengeo.org

Hi,

I have the same result on Geoserver 1.6.3 and 1.7.0 RC2.
I don't think it depends of the version...

All demo from geoserver demo page manage a good display of the WFS (when you
click on your map). But if you get the source of the samples and create a
new file elsewhere with the same code, it doesn't work anymore..
it's like it cannot reach the feature service of geoserver

So where is the link failure in the declaration of the wfs call ?
map.events.register('click', map, function (e) {
                    document.getElementById('nodelist').innerHTML =
"Loading... please wait...";
                    var params = {
                        REQUEST: "GetFeatureInfo",
                        EXCEPTIONS: "application/vnd.ogc.se_xml",
                        BBOX: map.getExtent().toBBOX(),
                        X: e.xy.x,
                        Y: e.xy.y,
                        INFO_FORMAT: 'text/html',
                        QUERY_LAYERS: map.layers[0].params.LAYERS,
                        FEATURE_COUNT: 50,
                        Srs: 'EPSG:26713',
                        Layers: 'spearfish',
                        Styles: '',
                        WIDTH: map.size.w,
                        HEIGHT: map.size.h,
                        format: format};
                   
OpenLayers.loadURL("http://localhost:8080/geoserver/wms", params, this,
setHTML, setHTML);
                    OpenLayers.Event.stop(e);
                });

thks

Justin Deoliveira-6 wrote:

Hi Scott,

Which version of GeoServer are you using? There was recently (as in
yesterday) just an issue with the preview relating to the attributes.

-Justin

Scott wrote:

I'm trying to recreate a simple openlayer page. The one that is created
when you demo a file (e.g., shapefile) in OpenLayers, that allows you to
click a feature to pull it's attributes up in a table.

I copied the source and moved it elsewhere, but now everything works
except clicking a feature to view it's attributes. What link is broken
that I can no longer view the attributes?

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
Software Engineer, OpenGeo
http://opengeo.org

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
View this message in context: http://www.nabble.com/question-about-openlayers-demo-tp19495536p19566689.html
Sent from the GeoServer - User mailing list archive at Nabble.com.