Hi Leon, please have a look at:
http://www.osgeo.nl/downloads/presentaties/openlayers/eindversie.zip it contains OpenLayers examples for the Dutch national grid. Opgave12.html in the examples dir will show you how to load a GML layer in EPSG:28992. Best regards, Bart > Hi guys, > > I'm trying to display the content of a GML file as a layer on top op a wms > background. > Both the background as the gml file are in EPSG:28992 (RD new). > It just doesn't render the gml content.... > Is there some kind of issue that i seem to forget? > > > > <script type="text/javascript"> > function init(){ > var mapOptions = { > maxResolution: 1324.21875, > numZoomLevels: 31, > projection: new OpenLayers.Projection('EPSG:28992'), > maxExtent: new OpenLayers.Bounds(10000.0,280000.0,305000.0,619000.0) > }; > map = new OpenLayers.Map('map', mapOptions ); > layer = new OpenLayers.Layer.WMS.Untiled( "Grenzen", > "http://localhost/deegree-wms/services?", { layers: "background", > transparent: "true"}, {'displayInLayerSwitcher':false, singleTile: false, > gutter: 15, isBaseLayer: true, opacity: 0.4}); > gml = new OpenLayers.Layer.GML("GML", "data.xml"); > map.addLayers([layer, gml]); > map.zoomToExtent(new OpenLayers.Bounds(9000.0,90000.0,155000.0,29000.0)); > map.addControl(new OpenLayers.Control.LayerSwitcher()); > } > </script> > > This doesn't give any errors, but it doesn't give any GML either... > Any ideas? > > Met vriendelijke groeten, > with kind regards, ¾´ÉÏ > L¨¦on van Berlo > > > > > > This e-mail and its contents are subject to the DISCLAIMER at > http://www.tno.nl/disclaimer/email.html > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users > _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
