[OpenLayers-Users] OpenLayers Examaple does not work

P Kishor punk.kish at gmail.com
Thu Sep 17 11:41:51 EDT 2009


2009/9/17 Mario Nuñez Jimenez <mario.nunez at atosresearch.eu>:
> Hello list,
>
> I am trying to get loaded 2 layers, one wms and another wfs but always fails
> and I don’t know why.
>
> This is the example code “WFS: United States (GeoServer)” taken from
> http://openlayers.org/dev/examples/ where only I changed the path to .js,
> .cgi or .css files.
>
> It does not works, the wms layer is failing but also the wfs layer… any idea
> of what I am doing wrongly?
>
> Thank you in advance.
>
>
>
> <html xmlns="http://www.w3.org/1999/xhtml">
>
>   <head>
>
>     <link rel="stylesheet" href="OpenLayers-2.8/theme/default/style.css"
> type="text/css" />
>
>     <link rel="stylesheet" href="OpenLayers-2.8/examples/style.css"
> type="text/css" />
>
>     <title>WFS: United States (GeoServer)</title>
>
>     <script src="OpenLayers-2.8/OpenLayers.js"></script>
>
>     <script type="text/javascript">
>
>         var map, layer;
>
..

are you even loading the OpenLayers.js library properly? The above
path is relative to your URL... is that where you have OpenLayers
stored?

--
Puneet Kishor



More information about the Users mailing list