Re: [OpenLayers-Users] beginner Q - misaligned layers, must be a projection?

2009-10-22 Thread deduikertjes
Chris, You'll have to reproject the kml layer to the Bing layer. Start reading here: http://docs.openlayers.org/library/spherical_mercator.html (and don't forget to search the archives). By the way: don't forget to include the proj4 library which seems to be the most commonly made mistake when

[OpenLayers-Users] How to check of a layer is correctly loaded (created) ?

2009-10-22 Thread deduikertjes
Dear List, I'm trying to load a layer and on failure create an empty layer to draw features on. I cannot find a test to see if the layer loaded ok. I've tried things like: commentaarLayer = new OpenLayers.Layer.GML("Commentaar", commentaarURL,{ format: OpenLayers.Format.GeoJ

[OpenLayers-Users] How to check of a layer is correctly loaded (created)

2009-10-22 Thread DeDuikertjes
Dear List, I'm trying to load a layer and on failure create an empty layer to draw features on. I cannot find a test to see if the layer loaded ok. I've tried things like: commentaarLayer = new OpenLayers.Layer.GML("Commentaar", commentaarURL,{ format: OpenLayers.Format.GeoJ

[OpenLayers-Users] gml3

2009-09-06 Thread DeDuikertjes
Hello List, Does anyone know of a working example of loading a GML3 file and displaying it? I'd like to work on from that to create a GML-layer with pop-ups which shows attributes. I've been desparetely trying to get it to work, but I never get any features loading. I've been trying things li

Re: [OpenLayers-Users] GeoRSS projection confusion:

2009-09-02 Thread DeDuikertjes
.addControl(new OpenLayers.Control.PanZoomBar()); map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.MousePosition()); } Thanks for all the help, MArco DeDuikertjes schreef: > Dear List, >

[OpenLayers-Users] GeoRSS projection confusion:

2009-08-31 Thread DeDuikertjes
Dear List, I have a georss file (with should be by definition in EPSG:4326) with one point: 6.36844646999779 51.8855430932258 it gets reprojected without me asking for it. When I show that as simple as possible in openlayers with: (working example on: http://80.101.100.35/planhosting/testplann

[OpenLayers-Users] georss not projecting

2009-07-13 Thread DeDuikertjes
Hi all, I'd like to add a layer to my map, with several point on which I can click. Then a popup opens with some info and with an url on it (different url for each point). So I've tried the GeoRSS layer for that. It's not working and I think it's because off the spatial reference system used.

Re: [OpenLayers-Users] Complicated WKT

2009-06-11 Thread DeDuikertjes
Hi, Be sure to have no linebreaks! Check with OpenJump that the geometry is valid (by the way, OpenJump does tolerate line breaks) Marco Alan Palazzolo schreef: > Hi, > > I am getting a strange issue where I am adding a feature with a very > long, complicated WKT Polygon, and no feature gets pu

Re: [OpenLayers-Users] php gml export example

2009-06-11 Thread DeDuikertjes
Hi Nicholas, In my experience it is relatively easy to write WKT from PHP. Even more easy if you can use the spatial functions of MySQL. Openlayers can read WKT via: new OpenLayers.Layer.GML("name", "url_to_local_file, { format: OpenLayers.Format.WKT}). hope this helps, MArco Nicholas Efremov

[OpenLayers-Users] zooming on large local vector maps behaves very odd

2009-05-17 Thread DeDuikertjes
Dear all, I've made an application which shows maps on the basis of local WKT (well known text) files, so there is no mapserver involved. Performance is surprisingly well, even for large amounts of data (at least in Firefox and IE8). The application shows several layers, all in same projection.