Re: [OpenLayers-Users] Draw a RegularPolygon automatically by defining the coordinates

2009-12-15 Thread sendeman
stash wrote: Is it possible to draw a rectangle with createRegularPolygon? I think not. A rectangle with irregular sides wouldn't be regular. createRegularePolygon can only create polygons with equal length sides. Regards, Martijn. -- View this message in context:

[OpenLayers-Users] Split a line feature with a MultiLineString

2009-12-14 Thread sendeman
Hi All, I have an OpenLayers application that in which I have an XYZ-subsurface model residing in a MySQL database table. The model has a record for each voxel that has an X, Y and Z value and a value that indicates the soil type (e.g. 1 for clay, 2 for loam, etcetera). Using php, jQuery and

[OpenLayers-Users] Pass layers array to php with json

2009-07-31 Thread sendeman
Hi All, I'm trying to load some php into a div in my mapping application through a http://docs.jquery.com/Ajax/load#urldatacallback jQuery load function . This works just fine, but now I want to pass all the maps layers to the php script, so the php script can use some of the layer properties

Re: [OpenLayers-Users] Selected items visually return to default state upon zooming or other refreshing of the viewport

2009-06-29 Thread sendeman
regards, Martijn Senden. sendeman wrote: Excuse me, that wasn't entirely right. It should be these steps: -select a polygon feature in wfs; -unselect it; -move cursor over a point from wfs2 -move cursor out of the point from wfs2 -move cursor over the point from wfs2 again

Re: [OpenLayers-Users] Selected items visually return to default state upon zooming or other refreshing of the viewport

2009-06-29 Thread sendeman
p.s. Here's http://n2.nabble.com/Selected-items-visually-return-to-%22default%22-state-upon-zooming-or-other-refreshing-of-the-viewport-td3147690.html a link to the entire thread . sendeman wrote: Hi All, Last week I posted these questions (see below). I haven't received any replies

[OpenLayers-Users] Selected items visually return to default state upon zooming or other refreshing of the viewport

2009-06-24 Thread sendeman
Hi all, After a lot of work and questions on this list (thanks for all the help!), I currently have a viewport that has two wfs layers in it, that display properly in all browsers. Phew! It has been a steep learning curve. I have one more question though, it's about selecting and styles. I have

Re: [OpenLayers-Users] Selected items visually return to default state upon zooming or other refreshing of the viewport

2009-06-24 Thread sendeman
p.s. On a sidenote: something strange happens when I subsequently do this: -select a polygon feature in wfs; -unselect it; -move cursor from within unselected polygon over a point from wfs2 that lies within the bounds of the polygon the cursor is in. What happens is that the point I'm hovering

Re: [OpenLayers-Users] Selected items visually return to default state upon zooming or other refreshing of the viewport

2009-06-24 Thread sendeman
the previously unselected polygon. It works the other way around as well. The points can be wrongly styled as selected as well. I wonder if it's a bug, or if I can solve it in my script. sendeman wrote: p.s. On a sidenote: something strange happens when I subsequently do this: -select a polygon feature

Re: [OpenLayers-Users] WFS layer visible in IE6 and IE7, but not in Firefox. Tried to set up proxy. No succes yet.

2009-06-23 Thread sendeman
Right. I downloaded the new stable 2.8 version of the OpenLayers script library and now the wfs layer does show up in Firefox. I do have new problems now, but I'll put those in a new thread, because they would be too much off topic here. Thanks for the help so far. Best regards, Martijn Senden.

Re: [OpenLayers-Users] WFS layer visible in IE6 and IE7, but not in Firefox. Tried to set up proxy. No succes yet.

2009-06-22 Thread sendeman
Hi, Thanks for your responses (to this thread and also to thread http://n2.nabble.com/Scalebar-not-visible-td3086564.html). I did understand that sending more information might be required, that's why I asked. :-) I tried your suggestions. What struck me as odd is that when I changed meters to

Re: [OpenLayers-Users] Scalebar not visible

2009-06-20 Thread sendeman
described earlier (see below). Does anyone see an error in the code I posted? Do I need to provide additional information? Please let me know if I need to give more input. Thanks again in advance! Best regards, Martijn Senden. sendeman wrote: Hi All, Does anyone have a solution

Re: [OpenLayers-Users] Scalebar not visible

2009-06-19 Thread sendeman
. sendeman wrote: Hi All, Does anyone have a solution for the problem I described earlier (see below)? I haven't been able to tackle it yet. Thanks a lot in advance! Best regards, Martijn Senden. sendeman wrote: Hi all! I'm trying to add a scalebar to my mapserver + openlayers webapp

Re: [OpenLayers-Users] WFS layer visible in IE6 and IE7, but not in Firefox. Tried to set up proxy. No succes yet.

2009-06-19 Thread sendeman
happy to give them. Thanks again in advance for any help! Best regards, Martijn Senden. sendeman wrote: Hi all, I'm trying to serve a WFS layer from mapserver using openlayers. I have it working in IE7, but Firefox doesn't show the WFS layer. Now, as I understand it from other threads

[OpenLayers-Users] WFS layer visible in IE6 and IE7, but not in Firefox. Tried to set up proxy. No succes yet.

2009-06-18 Thread sendeman
Hi all, I'm trying to serve a WFS layer from mapserver using openlayers. I have it working in IE7, but Firefox doesn't show the WFS layer. Now, as I understand it from other threads on this mailing list, the issue might be that I need to set up a Proxy to allow Firefox to show the WFS features.

Re: [OpenLayers-Users] Scalebar not visible

2009-06-17 Thread sendeman
Hi All, Does anyone have a solution for the problem I described earlier (see below)? I haven't been able to tackle it yet. Thanks a lot in advance! Best regards, Martijn Senden. sendeman wrote: Hi all! I'm trying to add a scalebar to my mapserver + openlayers webapp. I tried

[OpenLayers-Users] Map not showing in IE6 IE7, FF, Safari and Chrome are fine

2009-06-16 Thread sendeman
Hi All, I have a test site for a mapping application I'm building. Depending on the map I'm trying to serve, I have trouble displaying my map in IE6 and IE7. The map that is giving issues when I try to display it in IE contains a single WMS layer that is served by my own Mapserver. When I use a

Re: [OpenLayers-Users] Map not showing in IE6 IE7, FF, Safari and Chrome are fine

2009-06-16 Thread sendeman
Kenneth Skovhede, GEOGRAF A/S wrote: Most likely there is an invalid object initialization: { x: 0, y: 0, -- IE breaks, FF ignores comma } Thanks so much! That was just it: Code: controls: [ () new OpenLayers.Control.KeyboardDefaults(),==The invalid object initialization ]

[OpenLayers-Users] Scalebar not visible

2009-06-16 Thread sendeman
Hi all! I'm trying to add a scalebar to my mapserver + openlayers webapp. I tried implementing http://dev.openlayers.org/addins/scalebar/trunk/examples/scalebar.html the online example into my own page, but until now, I haven't succeeded. I used firebug to see the generated source and the

Re: [OpenLayers-Users] ZoomToExtent works in Firefox, Safari and IE7, but not in IE6

2009-05-27 Thread sendeman
Adam Eskreis wrote: If that fails, try to find something that works with IE6. Anything. Do whatever you can to get it to work. Thanks. I'll do that. I do really have to get it to work in IE6 though. There are still too many users around to ignore it. So, to put my words into action:

Re: [OpenLayers-Users] ZoomToExtent works in Firefox, Safari and IE7, but not in IE6

2009-05-26 Thread sendeman
Hi All, Does anybody have any ideas that might be of help for the problem I described previously? Thanks a lot in advance for any help. If I didn't explain the problem well enough, please let me know, so I can clarify it. Best regards, Martijn Senden. sendeman wrote: Hi all, I'm

[OpenLayers-Users] ZoomToExtent works in Firefox, Safari and IE7, but not in IE6

2009-05-25 Thread sendeman
Hi all, I'm trying to make a 'fluid' layout, in which the viewport of the map changes with changes in the size of the browser window. I have some html and css worked out that do this without javascript in IE6. The only problem I have is that the initial zoom level doesn't work in IE 6. IE 6

[OpenLayers-Users] 'Fluid' map in IE

2009-04-22 Thread sendeman
Hi All, Last week I managed to set up a simple localhost map server using Openlayers and UMN Mapserver. It all worked, across all modern browsers. It was however a straightforward example wit a map that had a fixed width and height. In the real page I'm making, the map needs to be in a div that

Re: [OpenLayers-Users] 'Fluid' map in IE

2009-04-22 Thread sendeman
Hi All, Has anyone read message today? I see it's only been viewed once. Does anyone have any ideas on how I could approach the described problem? Again, may thanks in advance. Best regards, Martijn Senden. sendeman wrote: Hi All, Last week I managed to set up a simple localhost map

Re: [OpenLayers-Users] Mapserver and Openlayers - Pink Tiles

2009-04-16 Thread sendeman
Hi All, Thanks again for all your replies. I got some private replies to my questions here and even though I added users@openlayers.org to the replies I sent to the repliers to my initial question here, my e-mail didn't arrive at the mailinglist or on this forum. Is it possible to send

[OpenLayers-Users] Mapserver and Openlayers - Pink Tiles

2009-04-15 Thread sendeman
Hi All, I'm new to Openlayers and Mapserver. I want to add a map generated by mapserver to my openlayers map. I have made a simple html-file in my http-root to test the openlayers/mapserver configuration (see below). The map file seems to work. I was able to generate an image with: shp2img -m

Re: [OpenLayers-Users] Mapserver and Openlayers - Pink Tiles

2009-04-15 Thread sendeman
At a first glance your mapserv path appears to be incorrect. Where is mapserv installed relative to your www root directory? My first guess is to try /bin/mapserv. Alex Thanks for your reply! I tried your suggestion. I think I had already tried it like this before myself, but it doesn't work

Re: [OpenLayers-Users] Mapserver and Openlayers - Pink Tiles

2009-04-15 Thread sendeman
The path to the 'mapserv' application should be in fact a URL, which can be accessed from any computer suitable for viewing the map. The path to your map file is a file path within the server. i.e. layer = new OpenLayers.Layer.MapServer(MyMap,http://myserver/cgi-bin/mapserv;, {map: