Re: [OpenLayers-Users] Custom cursor problems

2008-10-14 Thread Kenneth Skovhede, GEOGRAF A/S
It's a work in progress: http://trac.openlayers.org/ticket/1484 You can pull some pointers from the attached diff to see where the pointers are reset. Regards, Kenneth Skovhede, GEOGRAF A/S j-ms skrev: > Hi > > I want to use custom cursors to allow the user to easily differentiate what > "mod

[OpenLayers-Users] Custom cursor problems

2008-10-14 Thread j-ms
Hi I want to use custom cursors to allow the user to easily differentiate what "mode" the application is in. I use map.div.style.cursor = "url(../images/info.cur)"; and map.div.style.cursor = "url(../images/select.cur)"; to set the cursor depending on the mode. The first time a particular cur

[OpenLayers-Users] Problem with overview map

2008-10-14 Thread Subha Ramakrishnan
Hi, I'm using Openlayers Overview map control with Google Physical map which is also my base map. And i am using a restricted extent on the overview map to show India. Now, when i change my map's base layer to say Google Satellite, I change the layer in the overview map to match the map's base

[OpenLayers-Users] Adding an attribute field to a vector layer

2008-10-14 Thread Robert Sanson
I am developing an application that allows a user to digitise crop areas. The areas created will then be uploaded to a SQL-server database via a geoJSON string sent to a ColdFusion service. How can I specify one or more attribute fields? I am using the following construct: var crop_layer =

[OpenLayers-Users] MapServer OpenLayers Layer fails to load

2008-10-14 Thread jeffcopes
All, I have three layers I am loading through OpenLayers. One is a raster layer with two sets of global imagery. That is being created as an "OpenLayers.Layer.MapServer" object. This layer loads fine. Another layer "rivers" is a vector layer and is created as an "OpenLayers.Layer.WMS" object; it

Re: [OpenLayers-Users] Best strategy to add many clickable rectangle areas?

2008-10-14 Thread darrepac
Hi Arnd, Thanks for your help. I have setup correctly 2 rectangle areas within a GML file but I cannot make it work. Questions: - where do I put the attribute with the name in the GML?? Here is an extract of my gML: http://www.google.com"; />

Re: [OpenLayers-Users] Print / Saving Image

2008-10-14 Thread Ian
> > Correction for the sake of the list: the tiles were being layered > correctly, however MapServer background color settings to mimic the ocean > made it appear otherwise (eg. IMAGECOLOR 60 100 145). The solution was to > set this background color to transparent: > > $transparent = imagecolorall

Re: [OpenLayers-Users] Best strategy to add many clickable rectangle areas?

2008-10-14 Thread Arnd Wippermann
If you work with features coming from wfs, gml, kml, etc., then you can register 'featureselected' for the vector layer. If the source of the features have an attribute with the specific url, you can retrieve the url from the feature and execute your function. var aktLayer = 1; //index of a vect

Re: [OpenLayers-Users] OpenLayers Dojo widget

2008-10-14 Thread Greg Ederer
That's pretty much what I'm doing, too. Thanks! Greg Arnaud Morvan wrote: Just out of curiosity, has anyone made a Dojo _Contained subclass that wraps an OpenLayers Map? I've use OpenLayers with Dojo and Symfony, I've put the map into a Dojo container, but I have made

Re: [OpenLayers-Users] FeatureVector and atPoint() function way off. Why??

2008-10-14 Thread Tim Schaub
Hey- Eric Lemoine wrote: > Hi. atPoint() is an approximation based on the bounds of the geometry. > Instead you can use poly.containsPoint(point), where point is a > Geometry.Point object derived from the LonLat object. Eric Or, sticking with the API: poly.intersects(point) which is equivalent

[OpenLayers-Users] Best strategy to add many clickable rectangle areas?

2008-10-14 Thread darrepac
Hello, New to openlayers, I am starting to put my hands on it. I have seen how powerful openlayers is, which also make feel a little bit lost in front of so much and deep functionalities. I require your experience to oriente me in the things I am trying to do. I would like to have many rectangle

Re: [OpenLayers-Users] Removing a layer

2008-10-14 Thread Carlos Pinto
Thanks very much. I feel a little bit dum. But at least the problem is solved. Best, Carlos On Tue, Oct 14, 2008 at 5:01 PM, <[EMAIL PROTECTED]> wrote: > Probably this is because of the scope of your variable. > > If you define var in a function, it only has a local scope inside of > the

Re: [OpenLayers-Users] Removing a layer

2008-10-14 Thread bartvde
Probably this is because of the scope of your variable. If you define var in a function, it only has a local scope inside of the function, outside of the function it is not accessible. Instead, you can define the variable outside of the function with the var keyword. var = null; funct

[OpenLayers-Users] Removing a layer

2008-10-14 Thread Carlos Pinto
Hi all, I am having one trouble and I don't know what else to do. I have my map and I have develop some javascript code that is working fine. What happened this weekend is that I developed a function that had that some layers in the beginning: var myStyle128684655922811250 = new OpenLayers.Style

Re: [OpenLayers-Users] OpenLayers Dojo widget

2008-10-14 Thread Arnaud Morvan
> Just out of curiosity, has anyone made a Dojo _Contained subclass that > wraps an OpenLayers Map? > I've use OpenLayers with Dojo and Symfony, I've put the map into a Dojo container, but I have made nothing particular for that (not a subclass): @import "/js/dojo-release-1.1.1/dijit/th