[OpenLayers-Users] Simple WFS problem

Magyar Zsolt Magyar.Zsolt at aesz.hu
Thu Sep 8 08:47:00 EDT 2011


Thanks!

Now its works!

Thank you very much!

-----Original Message-----
From: Pierre Giraud [mailto:pierre.giraud at camptocamp.com] 
Sent: Thursday, September 08, 2011 2:39 PM
To: Magyar Zsolt
Cc: openlayers-users at lists.osgeo.org
Subject: Re: [OpenLayers-Users] Simple WFS problem

Try with the following :

    map = new OpenLayers.Map({
        div: "map",
        layers: [
            new OpenLayers.Layer.WMS(
                "Natural Earth",
                "http://demo.opengeo.org/geoserver/wms",
                {layers: "topp:naturalearth"}
            ),
            new OpenLayers.Layer.Vector("test_polygon", {
                strategies: [new OpenLayers.Strategy.Fixed()],
                protocol: new OpenLayers.Protocol.WFS({
                    url:  "http://erdoterkep.mgszh.gov.hu/geoserver/wfs",
                    featureType: "test_polygon",
                    featureNS: "http://www.openplans.org/topp"
                })
            })
        ],
        center: new OpenLayers.LonLat(21, 47),
        zoom: 6
    });

Pierre

On Thu, Sep 8, 2011 at 10:57 AM, Magyar Zsolt <Magyar.Zsolt at aesz.hu> wrote:
> Hi! Please help me! This simple WFS map why does not
> appear? http://erdoterkep.mgszh.gov.hu/egy_wfs.html Everything seems ok. But
> 2 simple polygons are not on the map!
>
> FireBug shows the correct XML with coordinates of the polygons. But why not
> they displayed?
>
>
>
> Thanks!
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>



-- 
Pierre GIRAUD
Géomaticien, Analyste

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 93
Mail : pierre.giraud at camptocamp.com
http://www.camptocamp.com




More information about the Users mailing list