<div>Thanks for! <br> I also tried to set 'projection', the provisions of the marker changes the coordinates but still do not match.<br><br> <br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
2009/2/16 JuergenL <span dir="ltr"><<a href="mailto:osm@albspotter.org">osm@albspotter.org</a>></span><br></blockquote></div><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
> new1[0] = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'georss/blu.xml',<br>
> {'icon':color[0]} );<br><br>You could try to set a projection for your GeoRSS. I use this code:<br><br>
rsslayer = new OpenLayers.Layer.GeoRSS( "RSSMarkers", "markers.rss",<br>
{'projection': new OpenLayers.Projection("EPSG:<div id=":8g" class="ArwC7c ckChnd">4326"), 'icon':rssicon<br>
});</div></blockquote><div> </div><div><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote"><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
2009/2/16 Marcello Brunaldi <<a href="mailto:marcello.brunaldi@student.unife.it">marcello.brunaldi@student.unife.it</a>>:<a href="mailto:users@openlayers.org"></a></blockquote><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div style="text-align: left;" dir="ltr">I have a problem with the display of the marker layer, because the coordinates do not match <br> this is my code:</div><br>function init()<br>{ <br> options={<br>
projection: new OpenLayers.Projection("EPSG:<div id=":11" class="ArwC7c ckChnd">900913"),<br> displayProjection: new OpenLayers.Projection("EPSG:4326"),<br> numZoomLevels:18,<br>
units: "m",<br>
maxResolution: 156543.0339,<br> maxExtent: new OpenLayers.Bounds(-20037508, -20037508,20037508, 20037508)<br> };<br> <br> map = new OpenLayers.Map('map', options);<br>
<br> var myBaseLayer = new OpenLayers.Layer.Google("Google",<br> {<br> 'sphericalMercator': true,<br> 'maxExtent': new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34)<br>
});<br><br> new1[0] = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'georss/blu.xml', {'icon':color[0]} );<br> new1[1] = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'georss/rosso.xml', {'icon':color[1]} );<br>
new1[2] = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'georss/verde.xml', {'icon':color[2]} );<br> new1[3] = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'georss/giallo.xml', {'icon':color[3]} );<br>
new1[4] = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'georss/marrone.xml', {'icon':color[4]} );<br> new1[5] = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'georss/arancio.xml', {'icon':color[5]} );<br>
new1[6] = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'georss/celeste.xml', {'icon':color[6]} );<br> new1[7] = new OpenLayers.Layer.GeoRSS( 'GeoRSS', 'georss/viola.xml', {'icon':color[7]} );<br>
<br> map.addLayers([myBaseLayer,unesco]);<br> <br> for (n=0; n < 8; n++) <br> {<br> map.addLayer(new1[n]);<br> }<br><br> map.addControl(new OpenLayers.Control.LayerSwitcher());<br> loadsetmap();<br>
map.addControl(new OpenLayers.Control.Permalink());<br> map.addControl(new OpenLayers.Control.MousePosition()); <br>} <br><br><div style="text-align: left;" dir="ltr">- I build the GeoRSS xml file, drawing from PostGIS database coordinates "SELECT ST_AsText (the_geom)"<br>
<div style="text-align: left;" dir="ltr">- The shape is inserted into the database type utm32 ED50.<br>- when loading from the same PostGIS database file in Geoserver, the wms layer perfectly see that on the map!</div></div>
</div></blockquote></blockquote></div>