<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> Hi all,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am adding a Text layer(which contains marker information for a particular latitude,longitude) on top of a WMS layer the code for which is present in the below conversation. The problem is that the map doesn't show anything when the text layer is added. I am placing a marker on a lat,lon which is inside the bounds of the reference system. What can be the reason for this?<br>&nbsp; <br><br><br>Harshad Shrikhande<br><br><font color="#990099">-----openlayers-users-bounces@lists.osgeo.org wrote: -----</font><div><blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: 2px solid black; margin-right: 0px;">To: openlayers-users@lists.osgeo.org<br>From: Julien-Samuel Lacroix <jlacroix@mapgears.com><br>Sent by: openlayers-users-bounces@lists.osgeo.org<br>Date: 01/27/2012 07:53PM<br>Subject: Re: [OpenLayers-Users] Reg Overlaying of layers<br><br><pre>Hi,<br><br>I tried your Text layer in an OpenLayers sample and it worked without <br>any error. The only thing I changed is your layer.txt. Your lat and lon <br>column are inverted.<br><br>Best regards,<br>Julien<br><br>On 12-01-27 03:24 AM, Harshad S wrote:<br>&gt; Hi all,<br>&gt;<br>&gt; I have added a WMS layer to my map in OpenLayers.On top of that, I wish<br>&gt; to add a text layer where the data is present in a text file in the same<br>&gt; folder(Marker information). But the result of all this a blank screen on<br>&gt; my browser(no map shown). What can be the fix for this?<br>&gt;<br>&gt;<br>&gt; var tiled = new OpenLayers.Layer.WMS(<br>&gt; "medford:streets - Tiled",<br>&gt; "<a href="http://172.24.105.46:8080/geoserver/medford/wms">http://172.24.105.46:8080/geoserver/medford/wms</a>",<br>&gt; {<br>&gt; LAYERS: 'medford:streets',<br>&gt; STYLES: '',<br>&gt; format: format,<br>&gt; tiled: !pureCoverage,<br>&gt; tilesOrigin : map.maxExtent.left + ',' + map.maxExtent.bottom<br>&gt; },<br>&gt; {<br>&gt; buffer: 0,<br>&gt; displayOutsideMaxExtent: true,<br>&gt; isBaseLayer: true<br>&gt; }<br>&gt; );<br>&gt;<br>&gt;<br>&gt;<br>&gt; var textlayer = new OpenLayers.Layer.Text (<br>&gt; "Cost-layer",<br>&gt; {location:"<a href="http://172.24.105.46/opl/layer.txt">http://172.24.105.46/opl/layer.txt</a>"}<br>&gt;<br>&gt; );<br>&gt;<br>&gt; map.addLayer(tiled);<br>&gt; map.addLayer(textlayer);<br>&gt;<br>&gt; The layer.txt file is as follows -<br>&gt;<br>&gt; lat lon title description iconSize iconOffset icon<br>&gt; -122.82777 42.34116 Cost 100 21,25 -10,-25<br>&gt; <a href="http://172.24.105.46/opl/images/select.png">http://172.24.105.46/opl/images/select.png</a><br>&gt; -121.87289 42.31088 Cost 110 21,25 -10,20<br>&gt; <a href="http://172.24.105.46/opl/images/select.png">http://172.24.105.46/opl/images/select.png</a><br>&gt;<br>&gt;<br>&gt; Harshad Shrikhande<br>&gt;<br>&gt; =====-----=====-----=====<br>&gt; Notice: The information contained in this e-mail<br>&gt; message and/or attachments to it may contain<br>&gt; confidential or privileged information. If you are<br>&gt; not the intended recipient, any dissemination, use,<br>&gt; review, distribution, printing or copying of the<br>&gt; information contained in this e-mail message<br>&gt; and/or attachments to it are strictly prohibited. If<br>&gt; you have received this communication in error,<br>&gt; please notify us by reply e-mail or telephone and<br>&gt; immediately and permanently delete the message<br>&gt; and any attachments. Thank you<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; Users@lists.osgeo.org<br>&gt; <a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br><br>-- <br>Julien-Samuel Lacroix<br>Mapgears<br><a href="http://www.mapgears.com/">http://www.mapgears.com/</a><br>_______________________________________________<br>Users mailing list<br>Users@lists.osgeo.org<br><a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br></pre></jlacroix@mapgears.com></blockquote></div><div></div></font>