[Dutch] openlayers.org veranderd?
Bart van den Eijnden
bartvde op osgis.nl
Wo Mrt 21 01:18:32 PDT 2012
http://osgeo-org.1560.n6.nabble.com/new-OpenLayers-Layer-OSM-Osmarender-quot-Osmarender-quot-broken-td4624625.html
Groeten,
Bart
--
Bart van den Eijnden
OSGIS - http://osgis.nl
On Mar 19, 2012, at 8:24 PM, Marc Coevoet wrote:
> Besten,
>
> Ik maakte zowat 2 jaar geleden een site met FM frequenties met behulp van openlayers & osm.
> http://ukwmaps.tk (de alias wisselt van fmmaps.tk naar ...)
>
> Nu zie ik dat de kaart er niet meer op komt..??
>
> Ik kan de code van een index.htm geven:
>
>
>
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <style type="text/css">
> #map {
> width: 100%;
> height: 100%;
> border: 0px;
> padding: 0px;
> position: absolute;
> }
> body {
> border: 0px;
> margin: 0px;
> padding: 0px;
> height: 100%;
> }
> </style>
> <script src="http://www.openlayers.org/api/OpenLayers.js"></script>
> <script src="http://www.openstreetmap.org/openlayers/OpenStreetMap.js"></script>
> <script type="text/javascript">
> <!--
> // complex map object
> var map;
>
> // Start position for the map (hardcoded here for simplicity,
> // but maybe you want to get from URL params)
> var lat = 50.89517;
> var lon = 2.7206;
> var zoom = 7;
>
> function init(){
> map = new OpenLayers.Map('map',
> { maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),
> numZoomLevels: 19,
> maxResolution: 156543.0399,
> units: 'm',
> projection: new OpenLayers.Projection("EPSG:900913"),
> displayProjection: new OpenLayers.Projection("EPSG:4326")
> });
>
> var layerMapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik");
>
> var layerTah = new OpenLayers.Layer.OSM.Osmarender("Tiles op Home");
>
> map.addLayers([layerMapnik,layerTah]);
>
> var pois = new OpenLayers.Layer.Text( "My Points",
> { location:"./textfile.txt",
> projection: map.displayProjection
> });
> map.addLayer(pois);
>
> map.addControl(new OpenLayers.Control.LayerSwitcher());
>
> var lonLat = new OpenLayers.LonLat(lon, lat).transform(map.displayProjection, map.projection);
> if (!map.getCenter()) map.setCenter (lonLat, zoom);
> }
> // -->
> </script>
> </head>
> <body onload="init()">
> <div id="map"></div>
> </body>
> </html>
>
> Enkele lijntjes van textfile.txt
>
> lat lon title description icon iconSize iconOffset
> 49.50583 0.17667 93.700MHz Le Havre Harfleur above sea 86m antenna height 74m erp h/v dBm/ 30.0dBm pol/dir / ../antenne.png 40,40 -20,-20
> 56.14444 10.18667 93.700MHz Aarhus City above sea 20m antenna height 40m erp h/v 27.0dBm/ dBm pol/dir / ../antenne.png 40,40 -20,-20
> 51.91611 10.46917 93.700MHz Goslar above sea 350m antenna height 35m erp h/v 20.0dBm/ dBm pol/dir / ../antenne.png 40,40 -20,-20
> 55.98528 10.55139 93.700MHz Samsoe above sea 0m antenna height 0m erp h/v 14.8dBm/ dBm pol/dir / ../antenne.png 40,40 -20,-20
> 50.61278 10.74667 93.700MHz Suhl above sea 830m antenna height 57m erp h/v 30.0dBm/ dBm pol/dir / ../antenne.png 40,40 -20,-20
>
> --
> The "Penguin" has arrived - and he's not going away - ever.
> What's on Shortwave guide: choose an hour, go!
> http://shortwave dot tk
> 700+ Radio Stations on SW http://swstations dot tk
> 300+ languages on SW http://radiolanguages dot tk
> _______________________________________________
> Dutch mailing list
> Dutch op lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/dutch
>
------------- volgend deel ------------
Een HTML-bijlage is gescrubt...
URL: <http://lists.osgeo.org/pipermail/dutch/attachments/20120321/4decafae/attachment.html>
More information about the Dutch
mailing list