<br clear="all"><span style="border-collapse:collapse">Hi everyone,<div><br clear="all">I am developing an application wich has WFS Layers.<div>For one layer, I was using featureClass: OpenLayers.Feature.WFS and so I get the red marker in the points, but for</div>
<div>the other layer I use:</div><div><br><div><div> var symbolizer = OpenLayers.Util.applyDefaults(</div><div> {externalGraphic: "img/marker-blue.png", pointRadius: 10}</div><div><br></div><div><div>
var especimeA = new OpenLayers.Layer.WFS("especime A",</div>
<div> "<a href="http://127.0.0.1:8081/cgi-bin/mapserv.exe?map=c" style="color:rgb(42, 93, 176)" target="_blank">http://127.0.0.1:8081/cgi-bin/mapserv.exe?map=c</a>:\\maps\\teste_postgis.map",</div>
<div> {typename: "zctas"},</div><div> {styleMap: new OpenLayers.StyleMap({</div><div> "default": symbolizer})</div><div> });</div>
<div> map.addLayer(especimeA);</div></div><div><br></div><div><br></div><div>For that layer in which I use the blue marker, as I move the map, the markers move their position too. If I change it to </div><div>
featureClass: OpenLayers.Feature.WFS, the points stay where they should be if I move the map or not. </div><div>My base layer is a google maps one.</div><div>My questions are: </div><div><br></div><div>1 - Why is it happening and how do I fix it ??</div>
<div><br></div><div>2 - How can I associate a popup to each point ? and how can I render information that is in my DB (postgis) in it ?</div><div><br></div><div>For example, I have:</div><div>id Name Point</div><div>1 Cat (-23,-45) </div>
<div>I'd like to associate a popup in it so that it shows "Cat" for example when I click in the marker representing the point (-23,-45) in the map.</div><div><br></div><div>I am using Mapsever (MS4W), postgre 8.3, postgis 1.3.6 and openlayers 2.8</div>
<div><br></div><div>Thanks for your attention guys,</div><div><br></div><div>Marcos</div><div><br></div></div></div></div></span>-- <br>"Saber o que é certo e não fazê-lo é a pior covardia."<br><br>