[OpenLayers-Users] Can't get the WFS running

2010-08-10 Thread andreia farrér
Hello there, I'm trying to implement a Web Feature Service in my Map and somehow it seems that I'm not able to handle such an easy task. A few infos first: - PosgreSQL/PostGIS installed locally; 3 Tables (ogm_points, ogm_lines, ogm_polygons) - Geoserver installed locally and WFS-function turned on

Re: [OpenLayers-Users] Can't get the WFS running

2010-08-10 Thread Adam Ratcliffe
You're probably not proxying your XHR requests so the WFS requests are being blocked by the browser's security model. You can find out how to configure a proxy here: http://trac.openlayers.org/wiki/FrequentlyAskedQuestions#WhydoIneedaProxyHost Cheers Adam On 10/08/2010, at 10:37 PM, andreia

[OpenLayers-Users] wmsGetFeatureInfo with Mapserver

2010-08-10 Thread Benjamin Preisig
Hi, I am trying to get the Feature Info - PopUp example (http://dev.openlayers.org/releases/OpenLayers-2.9.1/examples/getfeatureinfo-popup.html) working, but I am encountering some problems with it. When i click on the map nothing happens. I tried to search for the problem with firebug,

Re: [OpenLayers-Users] clickTolerance on selectFeature?

2010-08-10 Thread Alex Brandsen
Hi all, I still haven't found a way to make this work, does anyone have any suggestions? To rephrase: I need some way to select a feature when a click occurs on, or in the area around the feature, for example 20 pixels. Thanks, Alex. On Fri, Aug 6, 2010 at 5:44 PM, Alex Brandsen

Re: [OpenLayers-Users] clickTolerance on selectFeature?

2010-08-10 Thread Eric Lemoine
On Tue, Aug 10, 2010 at 1:40 PM, Alex Brandsen alex.brand...@gmail.com wrote: Hi all, I still haven't found a way to make this work, does anyone have any suggestions? To rephrase: I need some way to select a feature when a click occurs on, or in the area around the feature, for example 20

Re: [OpenLayers-Users] clickTolerance on selectFeature?

2010-08-10 Thread Alex Brandsen
On Tue, Aug 10, 2010 at 12:50 PM, Eric Lemoine eric.lemo...@camptocamp.comwrote: On Tue, Aug 10, 2010 at 1:40 PM, Alex Brandsen alex.brand...@gmail.com wrote: Hi all, I still haven't found a way to make this work, does anyone have any suggestions? To rephrase: I need some way to

[OpenLayers-Users] export map components to an image

2010-08-10 Thread Imran Rajjad
Hi list, I was wondering if it is possible to export the map view to an image, for example, if my map is showing certain layers and over them I have a vector layer , I want to export the features visible in the map to an image file, now I figured that out for wms layers, we can simply make a wms

Re: [OpenLayers-Users] clickTolerance on selectFeature?

2010-08-10 Thread Eric Lemoine
On Tue, Aug 10, 2010 at 1:55 PM, Alex Brandsen alex.brand...@gmail.com wrote: On Tue, Aug 10, 2010 at 12:50 PM, Eric Lemoine eric.lemo...@camptocamp.com wrote: On Tue, Aug 10, 2010 at 1:40 PM, Alex Brandsen alex.brand...@gmail.com wrote: Hi all, I still haven't found a way to make

Re: [OpenLayers-Users] clickTolerance on selectFeature?

2010-08-10 Thread Alex Brandsen
On Tue, Aug 10, 2010 at 1:45 PM, Eric Lemoine eric.lemo...@camptocamp.comwrote: On Tue, Aug 10, 2010 at 1:55 PM, Alex Brandsen alex.brand...@gmail.com wrote: On Tue, Aug 10, 2010 at 12:50 PM, Eric Lemoine eric.lemo...@camptocamp.com wrote: On Tue, Aug 10, 2010 at 1:40 PM, Alex

[OpenLayers-Users] RE wmsGetFeatureInfo with Mapserver

2010-08-10 Thread Steve . Toutant
Anything useful in apache access and error logs. And mapserver log? I use this control but I started from this example http://dev.openlayers.org/releases/OpenLayers-2.9.1/examples/getfeatureinfo-control.html steve Benjamin Preisig benjaminprei...@gmx.at@openlayers.org Envoyé par :

Re: [OpenLayers-Users] Displaying images even at the edge of the screen

2010-08-10 Thread Tpi
I've read in the source code of Feature/Vector.js that there's a boundsOnly variable, which seems like what I'd need, as I want to check if the bounds are within the screen and then make sure the image gets drawn, even if it's just a few pixels of the image that's on the screen. Anyone have any

Re: [OpenLayers-Users] Displaying images even at the edge of the screen

2010-08-10 Thread christopher.schmidt
On Aug 10, 2010, at 9:42 AM, ext Tpi wrote: I've read in the source code of Feature/Vector.js that there's a boundsOnly variable, which seems like what I'd need, as I want to check if the bounds are within the screen and then make sure the image gets drawn, even if it's just a few pixels

Re: [OpenLayers-Users] Displaying images even at the edge of the screen

2010-08-10 Thread Tpi
Thanks a lot for the reply. I imagined using point could be the reason. Is there any other clever way of doing it with points? Could I tell them to be drawn even outside of the screen? It will only be one point being drawn at a time. I'm drawing a floor plan on a map, would you suggest any

Re: [OpenLayers-Users] Displaying images even at the edge of the screen

2010-08-10 Thread christopher.schmidt
On Aug 10, 2010, at 11:27 AM, ext Tpi wrote: Thanks a lot for the reply. I imagined using point could be the reason. Is there any other clever way of doing it with points? Could I tell them to be drawn even outside of the screen? It will only be one point being drawn at a time. I'm

[OpenLayers-Users] Add custom control, possible?

2010-08-10 Thread Planet)x
I am trying to add a custom control to my existing panel. All I want to do is edit an existing control like MouseDefaults.js and create a simple control that will just refresh the page, I called it Home.js. However when I copy the exact code in MouseDefaults.js and change everything to be called

Re: [OpenLayers-Users] Add custom control, possible?

2010-08-10 Thread Planet)x
Sorry I figured out how to add a custom control by using the Button control and creating a function to run when the button is clicked. My next question is how do I change the icon image of the button if I want to have 2 or more custom buttons? i was able to change the icon of one by using the

Re: [OpenLayers-Users] Add custom control, possible?

2010-08-10 Thread Planet)x
Ok I was also able to figure this out - for the CSS style I did this .olControlPanel .olControlButtonHomeItemActive { background-image: url(OpenLayers-2.9.1/theme/default/img/home.gif); } .olControlPanel .olControlButtonHomeItemInActive {

[OpenLayers-Users] Auto-refreshing a GeoRSS layer

2010-08-10 Thread Hubick, William
Hi Everyone, My project is considering GeoRSS as our data-sharing standard with partners. I am pleased with how easily OpenLayers will display GeoRSS points, but I'm wondering how other developers ensure efficient auto-updates. My first impression was that OpenLayers would automatically check

Re: [OpenLayers-Users] Auto-refreshing a GeoRSS layer

2010-08-10 Thread Bart van den Eijnden
I would use a vector layer with a http protocol pointing to the GeoRSS file, and then add a Refresh Strategy. Something like this (untested, for a refresh every 60 seconds): var layer = new OpenLayers.Layer.Vector(mylayer, { strategies: [new

Re: [OpenLayers-Users] Auto-refreshing a GeoRSS layer

2010-08-10 Thread Alexandre Dube
Hi Bill, I never used it, but it would seem that the 'Refresh' Strategy could do the trick for you. Regards, Alexandre On 10-08-10 01:05 PM, Hubick, William wrote: Hi Everyone, My project is considering GeoRSS as our data-sharing standard with partners. I am pleased with how easily

Re: [OpenLayers-Users] RE wmsGetFeatureInfo with Mapserver

2010-08-10 Thread Bennos
Hi, Steve, thank you! The logs didnt help, but the link to the other implementation of the GetFeatureInfo. My mistake was, that i used an OpenLayers.Layer.MapServer instead of an OpenLayers.Layer.WMS ... so it couldnt work. I also added the highlightLayer from the example- i dont know exactly

Re: [OpenLayers-Users] Auto-refreshing a GeoRSS layer

2010-08-10 Thread christopher.schmidt
On Aug 10, 2010, at 1:05 PM, ext Hubick, William wrote: Hi Everyone, My project is considering GeoRSS as our data-sharing standard with partners. I am pleased with how easily OpenLayers will display GeoRSS points, but I'm wondering how other developers ensure efficient auto-updates. My

Re: [OpenLayers-Users] Using overview map, no layers showing up

2010-08-10 Thread Planet)x
Still having no luck with the overview map. It just displays an empty blue box with no layers, anyone have any advice on how to correct this or what I'm doing wrong? Here is all my code - %@ Page Language=VB AutoEventWireup=false CodeFile=Default.aspx.vb Inherits=_Default % html

Re: [OpenLayers-Users] Geoexplorer (http://suite.opengeo.org)

2010-08-10 Thread Ravi Pavuluri
Hi, I am just wondering if there is a way for having temporary vector layers(Ex:OpenLayers.Layer.Vector) to be added to the geoexplorer application? Thanks, Ravi. From: Tim Schaub tsch...@opengeo.org To: users@openlayers.org Sent: Thu, August 5, 2010

Re: [OpenLayers-Users] export map components to an image

2010-08-10 Thread Adam Ratcliffe
If you're serving your feature data from GeoServer you could take a look at the Print module: http://geoserver.org/display/GEOS/Printing+2.0+HOWTO Cheers Adam On 11/08/2010, at 12:02 AM, Imran Rajjad wrote: Hi list, I was wondering if it is possible to export the map view to an image, for

Re: [OpenLayers-Users] clickTolerance on selectFeature?

2010-08-10 Thread Phil Scadden
I'm mainly dealing with polylines, but if that is the only way, then so be it. How can I perform buffer calculations? Buffering every line in your display to see if selected is very intensive. If you are struggling with accurate selection of lines, can I suggest an alternative approach? If

Re: [OpenLayers-Users] export map components to an image

2010-08-10 Thread Imran Rajjad
Hi, thanks adam, though I`m using GS 1.7.7 , this feature I suppose is in GS 2.0.x regards, Imran On Wed, Aug 11, 2010 at 12:52 AM, Adam Ratcliffe a...@prema.co.nz wrote: If you're serving your feature data from GeoServer you could take a look at the Print module: