[OpenLayers-Users] GeoRSS lines doesn't show up

Simone Gadenz simone.gadenz at jrc.it
Wed Jun 25 05:00:03 EDT 2008


Hi all,

 

I try to load a GeoRSS file containing line elements as a GML layer(GeoRSS
format). All the loading process seems to be fine since I can see the layer
loaded into Firebug but I cannot see any feature on the map. 

 

The function to load the GeoRss file is following:

      function loadGeoRss(){

            var georssurl =
OpenLayers.Util.getElement('txtGeoRssUrl').value;

            var georssname =
OpenLayers.Util.getElement('txtGeoRssName').value;

            var georss_options = {

             'internalProjection': new OpenLayers.Projection("EPSG:900913"),

             'externalProjection': new OpenLayers.Projection("EPSG:4326")

        };

        var styleMap = new OpenLayers.StyleMap({

                "fillOpacity": 1,

                "pointRadius": 8,

                "fillColor" : "yellow",

                "stroke-width" : 2,

                "stroke" : "rgb(99,99,99)"

                });

       

          var georssformat2 = new OpenLayers.Format.GeoRSS(georss_options);

        var georsslayer = new OpenLayers.Layer.GML(georssname, georssurl,
{'format': georssformat2, styleMap: styleMap});

        OpenLayers.Util.getElement('Results').style.visibility="hidden";

        map.addLayers([georsslayer]);

        selectControl3 = new OpenLayers.Control.SelectFeature(georsslayer,

                  {onSelect: onRSSSelect, onUnselect: onRSSUnselect});

        map.addControl(selectControl3);

        selectControl3.activate();

      }

 

What am I doing wrong?

 

 

Cheers

 

Simone

 

PS: This is the firebug response

<svg id="OpenLayers.Layer.GML_1089_svgRoot" width="1584" height="549"
viewBox="0 0 1584 549">

<g id="OpenLayers.Layer.GML_1089_root" style="visibility: visible;">

<polyline id="OpenLayers.Geometry.LineString_1372" points="798.946,319.369
798.946,319.369 798.655,319.415 798.626,319.442 798.701,319.387
798.808,319.329 798.881,319.264 798.956,319.202 798.997,319.097
799.052,318.969 799.099,318.849 799.185,318.818 799.258,318.894
799.325,318.961 799.418,319.024 799.507,318.907 799.58,318.789
799.675,318.677 799.784,318.568 799.875,318.476 799.986,318.51
800.11,318.622 800.199,318.674 800.308,318.719 800.43,318.766 800.55,318.813
800.667,318.855 800.834,318.951 800.942,319.024 801.044,319.1
801.147,319.175 801.237,319.249 801.317,319.303 801.433,319.35
801.521,319.353 801.621,319.324 801.734,319.282 801.846,319.251
801.934,319.228 802.041,319.215 802.145,319.249 802.23,319.353
802.294,319.439 802.369,319.528 802.449,319.622 802.533,319.716
802.616,319.815 802.738,319.956 802.849,320.089 802.944,320.198
803.006,320.292 803.004,320.412 802.942,320.55 802.893,320.699
802.851,320.845 802.835,320.994 802.826,321.231 802.829,321.411
802.851,321.597 802.879,321.792 802.9,321.985 802.926,322.186
802.951,322.429 802.977,322.609 803.041,322.755 803.126,322.901
803.244,323.091 803.328,323.243 803.403,323.444 803.399,323.6 803.25,323.77
803.115,323.887 803.021,324.004 802.937,324.119 802.875,324.205
802.786,324.33 802.758,324.448 802.784,324.56 802.869,324.552
802.982,324.539 803.082,324.549 803.175,324.539 803.31,324.518
803.454,324.51 803.605,324.531 803.749,324.562 803.88,324.56 803.996,324.547
804.1,324.51 804.193,324.492 804.273,324.609 804.36,324.709 804.513,324.771
804.601,324.8 804.684,324.829 804.766,324.855 804.854,324.881
804.941,324.912 805.063,324.948 805.212,324.972 805.298,324.982
805.382,325.042 805.376,325.225 805.292,325.329 805.194,325.376
805.09,325.423 804.979,325.53 804.916,325.64 804.861,325.739 804.808,325.846
804.721,326.013 804.643,326.169 804.581,326.289 804.51,326.425
804.448,326.545 804.386,326.667 804.317,326.805 804.251,326.944
804.2,327.051 804.142,327.165 804.089,327.267 804.02,327.405 803.973,327.502
803.885,327.635 803.851,327.749 803.953,327.755 804.115,327.773
804.198,327.789 804.282,327.802 804.366,327.815 804.481,327.835
804.603,327.859 804.71,327.867 804.792,327.88 804.952,327.908
805.054,327.935 805.167,327.953 805.271,327.976 805.44,328.013
805.533,328.026 805.637,328.044 805.74,328.06 805.837,328.081
805.962,328.101 806.134,328.135 806.265,328.159 806.359,328.177
806.512,328.206 806.678,328.237 806.854,328.263 807.095,328.297
807.277,328.326 807.395,328.347 807.51,328.373 807.672,328.407
807.776,328.43 807.874,328.448 807.974,328.461 808.07,328.48 808.163,328.508
808.262,328.521 808.358,328.529 808.456,328.524 808.629,328.506
808.762,328.48 808.844,328.529 808.708,328.636 808.622,328.639
808.486,328.644 808.4,328.68 808.258,328.808 808.127,328.912 808.045,328.946
807.959,328.975 807.817,329.04 807.754,329.155 807.876,329.332
808.029,329.41 808.149,329.444 808.273,329.429 808.32,329.298
808.327,329.131 808.425,328.978 808.542,328.905 808.644,328.85
808.76,328.795 808.891,328.748 809.106,328.696 809.425,328.652
809.596,328.646 809.683,328.652 809.858,328.667 810.031,328.68
810.288,328.709 810.373,328.717 810.546,328.73 810.716,328.743
810.89,328.761 810.978,328.769 811.149,328.787 811.234,328.792
811.409,328.803 811.497,328.811 811.584,328.819 811.671,328.824
811.844,328.837 811.93,328.845 812.015,328.85 812.101,328.855 812.185,328.86
812.436,328.871 812.685,328.894 812.769,328.897 812.938,328.902
813.186,328.92 813.428,328.962 813.743,329.079 813.961,329.217
814.105,329.314 814.247,329.408 814.386,329.502 814.524,329.585
814.66,329.676 814.801,329.765 814.937,329.856 815.079,329.95
815.221,330.041 815.363,330.135 815.505,330.234 815.643,330.333
815.855,330.477 815.997,330.573 816.142,330.662 816.282,330.761
816.426,330.852 816.639,330.993 816.85,331.129 816.992,331.222
817.134,331.314 817.275,331.402 817.493,331.546" fill="none" stroke="none"/>

<polyline id="OpenLayers.Geometry.LineString_1377" points="798.741,319.387
798.741,319.387" fill="none" stroke="none"/>

</g>

</svg>

  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080625/5d59737a/attachment.html


More information about the Users mailing list