Hello Marc, <br><br>I made the following fixes to your source:<br><br>- In index.html added meta info about encoding<br>- set zoom to 5 (after discovering the objects where out of sight)<br>- Commented out the LayerTah. It doesn't seem to be available?<br>
<br>I had some issues converted your pasted textfile, I had to make sure all spaces where correct and I found out that the 3th column containing '21500Mhz' was not mapped resulting in OpenLayers unable to find the png's<br>
<br>Please find attached a working copy of your sample.<br><br>Kind regards,<br><br>Milo van der Linden<br><br><div class="gmail_quote">2012/10/3 Marc Coevoet <span dir="ltr"><<a href="mailto:marcc@dommel.be" target="_blank">marcc@dommel.be</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hello,<br>
<br>
3 years ago, I made a openlayers app with radio frequencies for FM and adjacent stations that could give noise.<br>
<br>
I see that suddenly the app no longer works.<br>
<br>
I will copy the code here:<br>
(images are on the right place ..)<br>
<br>
index.htm:<br>
====<br>
<html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/<u></u>xhtml</a>"><br>
<head><br>
<style type="text/css"><br>
#map {<br>
width: 100%;<br>
height: 100%;<br>
border: 0px;<br>
padding: 0px;<br>
position: absolute;<br>
}<br>
body {<br>
border: 0px;<br>
margin: 0px;<br>
padding: 0px;<br>
height: 100%;<br>
}<br>
</style><br>
<script src="<a href="http://www.openlayers.org/api/OpenLayers.js" target="_blank">http://www.openlayers.<u></u>org/api/OpenLayers.js</a>"></<u></u>script><br>
<script src="<a href="http://www.openstreetmap.org/openlayers/OpenStreetMap.js" target="_blank">http://www.openstreetmap.<u></u>org/openlayers/OpenStreetMap.<u></u>js</a>"></script><br>
<script type="text/javascript"><br>
<!--<br>
// complex map object<br>
var map;<br>
<br>
// Start position for the map (hardcoded here for simplicity,<br>
// but maybe you want to get from URL params)<br>
var lat = 50.89517;<br>
var lon = 2.7206;<br>
var zoom = 7;<br>
<br>
function init(){<br>
map = new OpenLayers.Map('map',<br>
{ maxExtent: new OpenLayers.Bounds(-20037508.<u></u>34,-20037508.34,20037508.34,<u></u>20037508.34),<br>
numZoomLevels: 19,<br>
maxResolution: 156543.0399,<br>
units: 'm',<br>
projection: new OpenLayers.Projection("EPSG:<u></u>900913"),<br>
displayProjection: new OpenLayers.Projection("EPSG:<u></u>4326")<br>
});<br>
<br>
var layerMapnik = new OpenLayers.Layer.OSM.Mapnik("<u></u>Mapnik");<br>
<br>
var layerTah = new OpenLayers.Layer.OSM.<u></u>Osmarender("Tiles@Home");<br>
<br>
map.addLayers([layerMapnik,<u></u>layerTah]);<br>
<br>
var pois = new OpenLayers.Layer.Text( "My Points",<br>
{ location:"./textfile.txt",<br>
projection: map.displayProjection<br>
});<br>
map.addLayer(pois);<br>
<br>
map.addControl(new OpenLayers.Control.<u></u>LayerSwitcher());<br>
<br>
var lonLat = new OpenLayers.LonLat(lon, lat).transform(map.<u></u>displayProjection, map.projection);<br>
if (!map.getCenter()) map.setCenter (lonLat, zoom);<br>
}<br>
// --><br>
</script><br>
</head><br>
<body onload="init()"><br>
<div id="map"></div><br>
</body><br>
</html><br>
===<br>
<br>
The textfile.txt starts like this :<br>
lat lon title description icon iconSize iconOffset<br>
57.28528 10.10139 91.500MHz Broenderslev above sea 40m antenna height 40m erp h/v 22.0dBm/ dBm pol/dir / ../antenne.png 40,40 -20,-20<br>
46.26750 10.11778 91.500MHz Brusio above sea 1097m antenna height 50m erp h/v 20.0dBm/ dBm pol/dir / ../antenne.png 40,40 -20,-20<br>
51.80139 10.61694 91.500MHz Brocken above sea 1140m antenna height 65m erp h/v 50.0dBm/ dBm pol/dir / ../antenne.png 40,40 -20,-20<br>
53.74444 10.70583 91.500MHz Berkenthin above sea 65m antenna height 147m erp h/v 30.0dBm/ dBm pol/dir / ../antenne.png 40,40 -20,-20<br>
48.90222 11.16306 91.500MHz Eichstaett above sea 470m antenna height 30m erp h/v 20.0dBm/ dBm pol/dir / ../antenne.png 40,40 -20,-20<br>
46.40083 11.28472 91.500MHz Bolzano Montic above sea 638m antenna height 97m erp h/v 30.0dBm/ dBm pol/dir / ../antenne.png 40,40 -20,-20<br>
...<br>
<br>
<br>
<br>
Where could te problem be?<br>
<br>
The fiels are uploaded to<br>
<a href="http://dxradio.woelmuis.nl/research/fmmaps/" target="_blank">http://dxradio.woelmuis.nl/<u></u>research/fmmaps/</a><br>
(and the pub does'nt make a problem)<span class="HOEnZb"><font color="#888888"><br>
<br>
Marc<br>
-- <br>
The "Penguin" has arrived - and he's not going away - ever.<br>
What's on Shortwave guide: choose an hour, go!<br>
<a href="http://shortwave" target="_blank">http://shortwave</a> dot tk<br>
700+ Radio Stations on SW <a href="http://swstations" target="_blank">http://swstations</a> dot tk<br>
300+ languages on SW <a href="http://radiolanguages" target="_blank">http://radiolanguages</a> dot tk<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/openlayers-<u></u>users</a><br>
</font></span></blockquote></div><br>