I have added a WMS layer to my map in OpenLayers.On top of that, I wish to add a text layer where the data is present in a text file in the same folder(Marker information). But the result of all this a blank screen on my browser(no map shown). What can be the fix for this?
var tiled = new OpenLayers.Layer.WMS(
"medford:streets - Tiled", "http://172.24.105.46:8080/geoserver/medford/wms",
{
LAYERS: 'medford:streets',
STYLES: '',
format: format,
tiled: !pureCoverage,
tilesOrigin : map.maxExtent.left + ',' + map.maxExtent.bottom
},
{
buffer: 0,
displayOutsideMaxExtent: true,
isBaseLayer: true
}
);
var textlayer = new OpenLayers.Layer.Text (
"Cost-layer",
{location:"http://172.24.105.46/opl/layer.txt"}
);
map.addLayer(tiled);
map.addLayer(textlayer);
The layer.txt file is as follows -
lat lon title description iconSize iconOffset icon
-122.82777 42.34116 Cost 100 21,25 -10,-25 http://172.24.105.46/opl/images/select.png
-121.87289 42.31088 Cost 110 21,25 -10,20 http://172.24.105.46/opl/images/select.png
Harshad Shrikhande
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
