From simone.gadenz at jrc.it Tue Apr 1 04:18:25 2008
From: simone.gadenz at jrc.it (Simone Gadenz)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Problem with lining up google map layers and
MApServer served layer
Message-ID: <004d01c893d0$f67f5600$e37e0200$@gadenz@jrc.it>
Hi all!
When overlaying a mapserver layer to google maps data there is a shift. It
seems that the World Map data coming from http://world.freemap.in/tiles/
line up mwith the data source I am publishing (the yellow one) and they are
shifted of around the same amount respect to the base google map layers.
The same effect is visible on the spherical-mercator.html example file.
In MapServer I used the following string:
PROJECTION
"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0
+y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs"
END
Any way to solve this?
S.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080401/1ead9c83/attachment.html
From crschmidt at metacarta.com Tue Apr 1 07:50:04 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Problem with lining up google map layers and
MApServer served layer
In-Reply-To: <004d01c893d0$f67f5600$e37e0200$@gadenz@jrc.it>
References: <004d01c893d0$f67f5600$e37e0200$@gadenz@jrc.it>
Message-ID: <20080401115004.GC21204@metacarta.com>
On Tue, Apr 01, 2008 at 10:18:25AM +0200, Simone Gadenz wrote:
> Hi all!
>
>
>
> When overlaying a mapserver layer to google maps data there is a shift. It
> seems that the World Map data coming from http://world.freemap.in/tiles/
> line up mwith the data source I am publishing (the yellow one) and they are
> shifted of around the same amount respect to the base google map layers.
>
> The same effect is visible on the spherical-mercator.html example file.
http://openlayers.org/dev/examples/spherical-mercator.html?zoom=11&lat=-5.14976&lon=-35.69046&layers=B0000000000TT
Looks fine to me: are you saying that something is wrong with it?
Regards,
--
Christopher Schmidt
MetaCarta
From crschmidt at metacarta.com Tue Apr 1 08:23:49 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] OpenLayers 2.6 RC1
Message-ID: <20080401122349.GE21204@metacarta.com>
The OpenLayers Development Team is proud to announce the first release
candidate of OpenLayers 2.6. As of 2.6-RC1, the OpenLayers 2.6 release
closes 282 outstanding tickets, 75% more than any OpenLayers release to
date.
For information on possible changes that will need to be made between
this version of OpenLayers and previous versions, please look at the
Release notes, available at the Release Notes information[1].
We invite you to help us test the 2.6 release candidate! To test 2.6 in
your applications, include the following tag in your OpenLayers-powered
page:
As always, the source is available at http://openlayers.org/download/.
Bug reports can be filed in Trac, under the 2.6 version and milestone.
This is a large release: the largest of any OpenLayers release to date.
We encourage widescale testing in an effort to shake out any bugs in
upgrading existing applications to OpenLayers 2.6. This release features
a number of major developments, including:
* Integration of the CloudAmber "Google Like" popups for advanced
visual display of information in popups
* Resulting improvements throughout all popup code, including
autosizing popups to the content they contain.
* Improved panning of commercial layers like Google Maps and Yahoo! Maps
* Animated panning of the map, using OpenLayers.Tween support
* Layer Image transitions, for keeping images visible when zooming
to allow smoother transitions
* Client side reprojection support using built in transformations for
spherical mercator, or the proj4js library for other projections.
* Support for reprojecting vector data layers
* Support for reprojecting user-facing controls like mouseposition
* Support for programatically reprojecting points and geometries
* Improved OpenLayers Styling, including:
* OpenLayers.Style, OpenLayers.StyleMap, OpenLayers.Rule support
for improved feature-attribute based styling
* SLD read/write support
* Support for reading and writing multiple versions of WMC.
* Improved KML support, including KML styling support.
* Improved GeoRSS Format support, including GeoRSS GML read support.
* New ScaleLine Control for displaying visual scale
* New NavigationHistory control for map history navigation
* Localization/Better Internationalization support
* Layer support for MapGuide Open Source
* A number of new / improved handlers to make handling user
interactions easier
* Handler.Hover
* Handler.Click
There are a number of people who have really made this release happen.
TOPP and MetaCarta worked together to arrange for several day long 'hack
session' in TOPP's office in New York City with myself, Erik, and Tim
Schaub: This session was extremely productive, and ended up producing a
huge amount of code for the relatively little amount of time we were all
able to get together. Without that several day long session, I think
we'd still be far from a release. Many thanks to Chris Holmes from TOPP
and John Frank/Josiah Strandberg at MetaCarta for supporting that effort.
A list of people who stic out to me as having helped especially to make
this release happen:
* Andreas Hocevar (TOPP)
* Tim Schaub (TOPP)
* Roald DeWit (LISAsoft)
* Bart van den Eijnden (OSGIS)
* Erik Uzureau (MetaCarta)
* Eric Lemoine (Camptocamp)
* Pierre Giraud (Camptocamp)
* Fred Junod (Camptocamp)
* Paul Spencer (DM Solutions)
* Mike Adair (DM Solutions)
* All the other testers, commenters, etc.
This is by no means a complete list: There are dozens of people who I
have interacted with that deserve to be on this list, but these are the
ones who stick out in my mind as being a major boon to the current
release.
Additionally, I'd like to speak high praises about the users who helped
out during the hackathon during FOSS4G. Although it's hard to believe,
the FOSS4G hack session was during the current (2.6) release cycle, and
we picked up some really great additions to the library, like our new
Fancier examples list http://openlayers.org/dev/doc/examples.html as a
result of the hard work put together in a single day by a bunch of
people who had never touched OpenLayers before. So thank you to those
people as well.
Further RC announcements will be sent only to the Developers list:
anyone interested in tracking the progress to a final release should
subscribe[2] to that list.
We look forward to your feedback on this release.
[1] http://trac.openlayers.org/wiki/Release/2.6/Notes#Changestoexistingapplicationsfrompreviousversions
[2] http://openlayers.org/mailman/listinfo/dev
Regards,
--
Christopher Schmidt
MetaCarta
From simone.gadenz at jrc.it Tue Apr 1 08:59:30 2008
From: simone.gadenz at jrc.it (Simone Gadenz)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Problem with lining up google map layers and
MApServer served layer
In-Reply-To: <20080401115004.GC21204@metacarta.com>
References: <004d01c893d0$f67f5600$e37e0200$@gadenz@jrc.it>
<20080401115004.GC21204@metacarta.com>
Message-ID: <002101c893f8$3992e5c0$acb8b140$@gadenz@jrc.it>
The attached image is a screen shot of an area in the South of Argentina. It
seems that the overlay layers (my mapserver layer and the worldmap) has a
shift toward North related to the base layer (the grey google map).
The link you sent
(http://openlayers.org/dev/examples/spherical-mercator.html?zoom=11&lat=-5.1
4976&lon=-35.69046&layers=B0000000000TT) does not work for me both in IE and
in FF.
Thanks
S.
-----Original Message-----
From: Christopher Schmidt [mailto:crschmidt@metacarta.com]
Sent: marted? 1 aprile 2008 13.50
To: Simone Gadenz
Cc: users@openlayers.org
Subject: Re: [OpenLayers-Users] Problem with lining up google map layers and
MApServer served layer
On Tue, Apr 01, 2008 at 10:18:25AM +0200, Simone Gadenz wrote:
> Hi all!
>
>
>
> When overlaying a mapserver layer to google maps data there is a shift. It
> seems that the World Map data coming from http://world.freemap.in/tiles/
> line up mwith the data source I am publishing (the yellow one) and they
are
> shifted of around the same amount respect to the base google map layers.
>
> The same effect is visible on the spherical-mercator.html example file.
http://openlayers.org/dev/examples/spherical-mercator.html?zoom=11&lat=-5.14
976&lon=-35.69046&layers=B0000000000TT
Looks fine to me: are you saying that something is wrong with it?
Regards,
--
Christopher Schmidt
MetaCarta
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ol_mismatch.jpg
Type: image/jpeg
Size: 18925 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080401/751236ce/ol_mismatch.jpg
From research at leviathanchile.org Tue Apr 1 20:04:09 2008
From: research at leviathanchile.org (G. Paolo Sanino V.)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Controls not working
Message-ID: <200804012004.13618.research@leviathanchile.org>
Hi All,
I am new at OpenLayers and I think this is awesome. I am trying to build a
small GIS for an ONG using the same layers used on the Openlayers homepage.
The big step will be to connect it to a database to store the markers. But in
a later step.
I am so sorry to bother you with such a question. It may be very simple but I
have had nightmares looking for a solution... Here is my problem:
I have gotten two layers working using "map.addlayer()" for each layer instead
of using "map.addlayers()" for all. I do not know why, if I use "AddLayers",
I only get a blank map (white) with only the blue buttons on the left up
corner.
Also, and maybe related, I got the center and zoom of the map working,
however, the next controls do not work/show in the map:
ScaleLine, MousePosition, OverviewMap.
Here is my code (from: http://www.cmmrleviathan.org/ciencia_GIS2.htm):
any help or idea would be very much appreciated...
Best regards,
Gian Paolo
From brad at cubewerx.com.au Tue Apr 1 21:08:50 2008
From: brad at cubewerx.com.au (bradleyspencer)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] SpericalMercator
Message-ID:
I am using a geocoder to go to an address but it always returns to me lat
longs which is normally just fine. However, I am also using a
shericalMercator base and would therefore like to transform the single point
from Lat Longs to Eastings Northings in sphericalMercator projection. Dose
anyone have a method or the formula to do this?
Cheers,
Brad Spencer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/ced7953e/attachment.html
From crschmidt at metacarta.com Tue Apr 1 21:21:41 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] SpericalMercator
In-Reply-To:
References:
Message-ID: <20080402012140.GA12578@metacarta.com>
On Wed, Apr 02, 2008 at 12:08:50PM +1100, bradleyspencer wrote:
> I am using a geocoder to go to an address but it always returns to me lat
> longs which is normally just fine. However, I am also using a
> shericalMercator base and would therefore like to transform the single point
> from Lat Longs to Eastings Northings in sphericalMercator projection. Dose
> anyone have a method or the formula to do this?
Are you using 2.6 yet? It's in there: just:
lonlat.transform(new OpenLayers.Projection("EPSG:4326"), new
OpenLayers.Projection("EPSG:900913"));
If not, of course, you can use the forwardMercator and inverseMercator
functions on your commercial sphericalMercator layer. (See
Layer/SphericalMercator.js.)
Regards,
--
Christopher Schmidt
MetaCarta
From brad at cubewerx.com.au Tue Apr 1 23:59:16 2008
From: brad at cubewerx.com.au (bradleyspencer)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] SpericalMercator
In-Reply-To: <20080402012140.GA12578@metacarta.com>
Message-ID:
Chris,
Thanks for that. I upgraded to 2.6. and it is stable at least for what I am
doing and the transformation worked a treat.
When is 2.6 scheduled to be published?
Cheers,
Brad Spencer
-----Original Message-----
From: Christopher Schmidt [mailto:crschmidt@metacarta.com]
Sent: Wednesday, 2 April 2008 12:22 PM
To: bradleyspencer
Cc: openlayers users
Subject: Re: [OpenLayers-Users] SpericalMercator
On Wed, Apr 02, 2008 at 12:08:50PM +1100, bradleyspencer wrote:
> I am using a geocoder to go to an address but it always returns to me lat
> longs which is normally just fine. However, I am also using a
> shericalMercator base and would therefore like to transform the single
point
> from Lat Longs to Eastings Northings in sphericalMercator projection. Dose
> anyone have a method or the formula to do this?
Are you using 2.6 yet? It's in there: just:
lonlat.transform(new OpenLayers.Projection("EPSG:4326"), new
OpenLayers.Projection("EPSG:900913"));
If not, of course, you can use the forwardMercator and inverseMercator
functions on your commercial sphericalMercator layer. (See
Layer/SphericalMercator.js.)
Regards,
--
Christopher Schmidt
MetaCarta
From crschmidt at metacarta.com Wed Apr 2 00:19:39 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] SpericalMercator
In-Reply-To:
References: <20080402012140.GA12578@metacarta.com>
Message-ID: <20080402041938.GA3531@metacarta.com>
On Wed, Apr 02, 2008 at 02:59:16PM +1100, bradleyspencer wrote:
> Chris,
>
> Thanks for that. I upgraded to 2.6. and it is stable at least for what I am
> doing and the transformation worked a treat.
>
> When is 2.6 scheduled to be published?
As I'm sure you saw earlier today, 2.6 only reached RC1 this morning.
In general, our time from RC1 to release has ranged from 1 week to 6
weeks.
My hope is that this will be a short RC cycle. However, it is a
significantly larger release than any OpenLayers release in the past:
Although there is less change in core functionality, we may still have
unforseen problems / regressions in code that we want to fix in 2.6 that
slow the final release process.
I won't give a date: I would be wrong. I will say "As soon as it makes
sense" -- which means the more feedback we get from our users on things
that work, the better and sooner we can release. So thank you for your
feedback.
As always, the users list will be notified when the new release is
available.
Regards,
--
Christopher Schmidt
MetaCarta
From David at itbeyond.com.au Wed Apr 2 00:33:34 2008
From: David at itbeyond.com.au (David Martin)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] FramedCloud GEORSS support
Message-ID: <9C37154DC7C8074FBC34214363755B7C1EB341@ITB-SVR-01.itbeyond.local>
I have been following the development around FramedClould for the last
few days and now see that it is published in the trunk. Excellent piece
of work to all concerned.
I cannot profess to be a JS expert nor am I fully into OL code as yet -
I am getting there but thought it best to ask this question before I
start adjust the code. Is it possible to transfer support of the GEORSS
markers from popup to FramedCloud popups. This would sit closer to other
implementations. Maybe there is a simple way to do this however as I
stated I am not fully into it just yet.
Any help or thoughts on this would be great!
Regards
David Martin
Managing Director
I.T. Beyond Pty Ltd
Postal:
PO BOX 967
HILLARYS WA 6923
Ph:
(08) 9403 3737
Mobile:
0417 677 275
Fax:
(08) 9403 3738
Skype:
itbeyond_david
________________________________
Check out our websites: www.ExplorOz.com and
www.itbeyond.com.au
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/c7c56d71/attachment.html
From eric.c2c at gmail.com Wed Apr 2 02:43:47 2008
From: eric.c2c at gmail.com (Eric Lemoine)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Controls not working
In-Reply-To: <200804012004.13618.research@leviathanchile.org>
References: <200804012004.13618.research@leviathanchile.org>
Message-ID: <5ec103de0804012343v7187e4f4w5e772542db9133cc@mail.gmail.com>
On Wed, Apr 2, 2008 at 2:04 AM, G. Paolo Sanino V.
wrote:
> Hi All,
>
> I am new at OpenLayers and I think this is awesome. I am trying to build a
> small GIS for an ONG using the same layers used on the Openlayers homepage.
> The big step will be to connect it to a database to store the markers. But in
> a later step.
> I am so sorry to bother you with such a question. It may be very simple but I
> have had nightmares looking for a solution... Here is my problem:
>
> I have gotten two layers working using "map.addlayer()" for each layer instead
> of using "map.addlayers()" for all. I do not know why, if I use "AddLayers",
> I only get a blank map (white) with only the blue buttons on the left up
> corner.
Doesn't "map.addLayers([jpl_wms, ol_wms]);" work?
> Also, and maybe related, I got the center and zoom of the map working,
> however, the next controls do not work/show in the map:
> ScaleLine, MousePosition, OverviewMap.
>
> Here is my code (from: http://www.cmmrleviathan.org/ciencia_GIS2.htm):
>
>
I copied/pasted your code in OpenLayers' wms.html example and it just
worked. The controls are there.
When I load your web page in FF, FireBug shows this error:
OpenLayers.Control.ScaleLine is not a constructor
map.addControl(new OpenLayers.Control.ScaleLine());
It seems to me that you're missing controls in your OpenLayers.js
build. You can try to use
http://dev.openlayers.org/nightly/OpenLayers.js instead of your
(custom) OpenLayers.js build to make sure that's your problem.
Cheers,
--
Eric
From frederic.junod at camptocamp.com Wed Apr 2 02:47:56 2008
From: frederic.junod at camptocamp.com (=?UTF-8?B?RnLDqWTDqXJpYw==?= Junod)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Controls not working
In-Reply-To: <200804012004.13618.research@leviathanchile.org>
References: <200804012004.13618.research@leviathanchile.org>
Message-ID: <20080402084756.411dcff7@kirishima.wrk.lsn.camptocamp.com>
Hi,
You can't use the ScaleLine control because you're using and old version of
OpenLayers (http://www.openlayers.org/api/OpenLayers.js version 2.5). The
ScaleLine control was added after the 2.5 release.
You have to use a more recent version of OpenLayers, the new stable release is
not ready yet but you can use the release candidate:
http://openlayers.org/api/2.6-rc1/OpenLayers.js
But this is not the final code !! When the final 2.6 will be released this url
will become obsolete ...
fredj
Le Tue, 1 Apr 2008 20:04:09 -0400,
"G. Paolo Sanino V." a ?crit :
> Hi All,
>
> I am new at OpenLayers and I think this is awesome. I am trying to build a
> small GIS for an ONG using the same layers used on the Openlayers homepage.
> The big step will be to connect it to a database to store the markers. But in
> a later step.
> I am so sorry to bother you with such a question. It may be very simple but I
> have had nightmares looking for a solution... Here is my problem:
>
> I have gotten two layers working using "map.addlayer()" for each layer
> instead of using "map.addlayers()" for all. I do not know why, if I use
> "AddLayers", I only get a blank map (white) with only the blue buttons on the
> left up corner.
> Also, and maybe related, I got the center and zoom of the map working,
> however, the next controls do not work/show in the map:
> ScaleLine, MousePosition, OverviewMap.
>
> Here is my code (from: http://www.cmmrleviathan.org/ciencia_GIS2.htm):
>
>
>
> any help or idea would be very much appreciated...
>
> Best regards,
> Gian Paolo
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
--
Fr?d?ric Junod
Camptocamp SA
From xin at zenpow.com Wed Apr 2 02:51:52 2008
From: xin at zenpow.com (Xin)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] any good-looking marker icons out there?
Message-ID:
The markers I'm currently using are those diamond shapes ones. Are there any
better looking free-to-use markers out there?
I am right to assume I can't just use Google's?
thanks
Xin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/09c38e6d/attachment.html
From David at itbeyond.com.au Wed Apr 2 06:06:15 2008
From: David at itbeyond.com.au (David Martin)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Right Mouse Events and Ticket 1359
Message-ID: <9C37154DC7C8074FBC34214363755B7C1EB363@ITB-SVR-01.itbeyond.local>
Hi,
I was needed to add support for right mouse click events and also the
right mouse double click zoom out function. I have made the required
mods to the code to support this and was wondering (as I am un familiar
with the process) how to submit the mods for consideration in the
overall project. There may need to be a compliance check done
There are updates to Events.js, Controls/Navigation.js, Handler/Click.js
and also a one liner in Map.js.
The updates I have developed add support for single and double right
mouse events. I have mapped the zoom out to double right click in
Navigaton.js.
I noticed the ticket for this task and the expected release in 2.7
however I wondered if we may be able to sneak it into 2.6. Anyway can
someone tell me what the process is to have the mods evaluated and I
will gladly comply.
Regards
David Martin
Managing Director
I.T. Beyond Pty Ltd
Postal:
PO BOX 967
HILLARYS WA 6923
Ph:
(08) 9403 3737
Mobile:
0417 677 275
Fax:
(08) 9403 3738
Skype:
itbeyond_david
________________________________
Check out our websites: www.ExplorOz.com and
www.itbeyond.com.au
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/3b0174ea/attachment.html
From pagameba at gmail.com Wed Apr 2 06:29:39 2008
From: pagameba at gmail.com (Paul Spencer)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Right Mouse Events and Ticket 1359
In-Reply-To: <9C37154DC7C8074FBC34214363755B7C1EB363@ITB-SVR-01.itbeyond.local>
References: <9C37154DC7C8074FBC34214363755B7C1EB363@ITB-SVR-01.itbeyond.local>
Message-ID: <5B1FE9B2-0616-4EDE-945E-62623FF3FA42@gmail.com>
David,
you can attach your patch to the ticket. The feature list for 2.6 has
been frozen for a little while and now that RC1 is out, it is unlikely
that this will make it in to 2.6 as it is a new feature, not a bug or
regression. At this point, only bugs (fairly critical ones) and
changes in API behaviour from previous versions would be considered
for inclusion in 2.6.
Paul
On 2-Apr-08, at 6:06 AM, David Martin wrote:
> Hi,
>
> I was needed to add support for right mouse click events and also
> the right mouse double click zoom out function. I have made the
> required mods to the code to support this and was wondering (as I am
> un familiar with the process) how to submit the mods for
> consideration in the overall project. There may need to be a
> compliance check done
>
> There are updates to Events.js, Controls/Navigation.js, Handler/
> Click.js and also a one liner in Map.js.
>
> The updates I have developed add support for single and double right
> mouse events. I have mapped the zoom out to double right click in
> Navigaton.js.
>
> I noticed the ticket for this task and the expected release in 2.7
> however I wondered if we may be able to sneak it into 2.6. Anyway
> can someone tell me what the process is to have the mods evaluated
> and I will gladly comply.
>
> Regards
> David Martin
> Managing Director
> I.T. Beyond Pty Ltd
> Postal:
> PO BOX 967
> HILLARYS WA 6923
> Ph:
> (08) 9403 3737
> Mobile:
> 0417 677 275
> Fax:
> (08) 9403 3738
> Skype:
> itbeyond_david
> Check out our websites: www.ExplorOz.com and www.itbeyond.com.au
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
From crschmidt at metacarta.com Wed Apr 2 07:38:53 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Controls not working
In-Reply-To: <20080402084756.411dcff7@kirishima.wrk.lsn.camptocamp.com>
References: <200804012004.13618.research@leviathanchile.org>
<20080402084756.411dcff7@kirishima.wrk.lsn.camptocamp.com>
Message-ID: <20080402113852.GA10049@metacarta.com>
On Wed, Apr 02, 2008 at 08:47:56AM +0200, Fr?d?ric Junod wrote:
> Hi,
>
> You can't use the ScaleLine control because you're using and old version of
> OpenLayers (http://www.openlayers.org/api/OpenLayers.js version 2.5). The
> ScaleLine control was added after the 2.5 release.
>
> You have to use a more recent version of OpenLayers, the new stable release is
> not ready yet but you can use the release candidate:
> http://openlayers.org/api/2.6-rc1/OpenLayers.js
> But this is not the final code !! When the final 2.6 will be released this url
> will become obsolete ...
Nothing in /api/ Ever goes away: You can continue to use 2.6-rc1 for all
time, but it would not be wise to. However, it's only obsolete in the
same way that /api/2.4/ is: You can safely use this in your application,
you should just be aware that as soon as 2.6 is released, it will make
sense for you to switch.
Regards,
--
Christopher Schmidt
MetaCarta
From crschmidt at metacarta.com Wed Apr 2 07:47:36 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] FramedCloud GEORSS support
In-Reply-To: <9C37154DC7C8074FBC34214363755B7C1EB341@ITB-SVR-01.itbeyond.local>
References: <9C37154DC7C8074FBC34214363755B7C1EB341@ITB-SVR-01.itbeyond.local>
Message-ID: <20080402114735.GB10049@metacarta.com>
On Wed, Apr 02, 2008 at 12:33:34PM +0800, David Martin wrote:
> I have been following the development around FramedClould for the last
> few days and now see that it is published in the trunk. Excellent piece
> of work to all concerned.
>
> I cannot profess to be a JS expert nor am I fully into OL code as yet -
> I am getting there but thought it best to ask this question before I
> start adjust the code. Is it possible to transfer support of the GEORSS
> markers from popup to FramedCloud popups. This would sit closer to other
> implementations.
What 'other implementations'?
> Maybe there is a simple way to do this however as I
> stated I am not fully into it just yet.
So, I have a couple feelings on this.
1. The way that we do Layer.GeoRSS right now is an unfortunate
situation: if we were to 'do it all over again', we would do it very
similar to the new examples/sundials.html, by having a single layer
that wrapped up the data display and a selectfeature control to open
a popup. I *highly* recommend looking at this example: It's a few
more lines of code than setting up a layer.GeoRSS, but it's *way*
more extensible, since you have complete control over just about
everything.
2. If you don't like this, and want to use layer.georss with
framedclouds, then you can do this at this time:
OpenLayers.Feature.prototype.popupClass =
OpenLayers.Popup.FramedCloud;
I think this should work as a first order approximation. However,
there could be problems with this, and it's not really 'supported'
because we don't do it in our tests or examples, so it is, at the
moment, somewhat at your own risk.
I still recommend #1 strongly for anyone doing work with GeoRSS for the
long term -- your next question will be "how do I use different icons
for entries from different categories?", and that one can't be answered
nearly so easily.
Good luck, and Best Regards,
--
Christopher Schmidt
MetaCarta
From nils.weinander at curalia.se Wed Apr 2 08:07:04 2008
From: nils.weinander at curalia.se (Nils Weinander)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Loading invisible layers
Message-ID: <47F376E8.2060602@curalia.se>
I have noticed that layers (WMS in this case) are always
loaded, whether they are visible or not. Is there a way
to make a layer load (do the WMS request) first when a
layer's visibility is set to true?
--
Nils Weinander | Systems Designer
Phone +46 (0)8 410 064 56
Mobile +46 (0)70 978 28 37
--
Curalia AB | www.curalia.se
V?stmannagatan 15, 111 24 Stockholm, Sweden
--
From crschmidt at metacarta.com Wed Apr 2 09:01:31 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Loading invisible layers
In-Reply-To: <47F376E8.2060602@curalia.se>
References: <47F376E8.2060602@curalia.se>
Message-ID: <20080402130131.GA11103@metacarta.com>
On Wed, Apr 02, 2008 at 02:07:04PM +0200, Nils Weinander wrote:
> I have noticed that layers (WMS in this case) are always
> loaded, whether they are visible or not. Is there a way
> to make a layer load (do the WMS request) first when a
> layer's visibility is set to true?
Are you using trunk/2.6, or 2.5? I think the answer is the latter, and
if so, the answer is "Upgrade."
If the answer is "The former", then the answer is "We thought the code
did that: Please open a ticket for 2.7."
Regards,
--
Christopher Schmidt
MetaCarta
From crschmidt at metacarta.com Wed Apr 2 09:08:01 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Right Mouse Events and Ticket 1359
In-Reply-To: <9C37154DC7C8074FBC34214363755B7C1EB363@ITB-SVR-01.itbeyond.local>
References: <9C37154DC7C8074FBC34214363755B7C1EB363@ITB-SVR-01.itbeyond.local>
Message-ID: <20080402130801.GB11103@metacarta.com>
On Wed, Apr 02, 2008 at 06:06:15PM +0800, David Martin wrote:
> Hi,
>
> I was needed to add support for right mouse click events and also the
> right mouse double click zoom out function. I have made the required
> mods to the code to support this and was wondering (as I am un familiar
> with the process) how to submit the mods for consideration in the
> overall project. There may need to be a compliance check done
In general, the process for creating and submitting patches is outlined
at http://trac.openlayers.org/wiki/CreatingPatches . You should also
fill out and submit a CLA:
http://trac.openlayers.org/wiki/HowToContribute#ContributorsLicenseAgreements
> I noticed the ticket for this task and the expected release in 2.7
> however I wondered if we may be able to sneak it into 2.6. Anyway can
> someone tell me what the process is to have the mods evaluated and I
> will gladly comply.
The feature freeze for 2.6 was 6 weeks ago: so unless you have a time
machine, this won't be in 2.6.
Thanks for your interest,
--
Christopher Schmidt
MetaCarta
From nils.weinander at curalia.se Wed Apr 2 09:40:31 2008
From: nils.weinander at curalia.se (Nils Weinander)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Loading invisible layers
In-Reply-To: <20080402130131.GA11103@metacarta.com>
References: <47F376E8.2060602@curalia.se>
<20080402130131.GA11103@metacarta.com>
Message-ID: <47F38CCF.7010605@curalia.se>
Christopher Schmidt wrote:
> On Wed, Apr 02, 2008 at 02:07:04PM +0200, Nils Weinander wrote:
>> I have noticed that layers (WMS in this case) are always
>> loaded, whether they are visible or not. Is there a way
>> to make a layer load (do the WMS request) first when a
>> layer's visibility is set to true?
>
> Are you using trunk/2.6, or 2.5? I think the answer is the latter, and
> if so, the answer is "Upgrade."
>
> If the answer is "The former", then the answer is "We thought the code
> did that: Please open a ticket for 2.7."
I'm using 2.5, thanks for the very quick response!
I don't think I'm in a position to upgrade right now,
but as I know that there is a solution, this shouldn't
be a major issue.
--
Nils Weinander | Systems Designer
Phone +46 (0)8 410 064 56
Mobile +46 (0)70 978 28 37
--
Curalia AB | www.curalia.se
V?stmannagatan 15, 111 24 Stockholm, Sweden
--
From euzuro at gmail.com Wed Apr 2 09:47:53 2008
From: euzuro at gmail.com (Erik Uzureau)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] any good-looking marker icons out there?
In-Reply-To:
References:
Message-ID: <6ae3fb590804020647v2fd55fcdo43319c77deb43c07@mail.gmail.com>
:-)
If you do find some alternative icons that are available free of use,
please let us know.
just like we will be setting up an addins/customPopups directory, I
think it would be
a good idea to have an addins/customMarkers
Thanks, Xin!
erik
On Wed, Apr 2, 2008 at 2:51 AM, Xin wrote:
> The markers I'm currently using are those diamond shapes ones. Are there any
> better looking free-to-use markers out there?
>
> I am right to assume I can't just use Google's?
>
> thanks
> Xin
>
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
From James.R.Bellenger at nga.mil Wed Apr 2 10:08:31 2008
From: James.R.Bellenger at nga.mil (Bellenger, Jim)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Which JavaScript Obfuscator does OpenLayers use?
Message-ID: <98C277567E731946AF64A9008432DD0A064EF625@XCGSTL01.gold.rtgold.nima.mil>
I was wondering which JavaScript Obfuscator does OpenLayers use to
crunch down the scripts?
Jim Bellenger
Imagery and Geospatial Scientist
NGA/II-GIAT
314-263-4924/4728, DSN 693-4924/4728
Secure 577-3543
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/b4a79779/attachment.html
From woodbri at swoodbridge.com Wed Apr 2 11:09:56 2008
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] any good-looking marker icons out there?
In-Reply-To: <6ae3fb590804020647v2fd55fcdo43319c77deb43c07@mail.gmail.com>
References:
<6ae3fb590804020647v2fd55fcdo43319c77deb43c07@mail.gmail.com>
Message-ID: <47F3A1C4.8030806@swoodbridge.com>
You might want to check out what ka-map has, it is likely we can use those.
You might also want to check out msCross, they have a simple clean
balloon with a shadow thats looks nice.
http://sourceforge.net/projects/mscross I would think that we can ask
either of these for permission to use their icons.
Another option might be to ask the community if any of the graphic
designers out there would like to create some sample icons that they
would be willing to contribute to be a part of OpenLayers. Run a contest
and have the community vote on them.
-Steve W
Erik Uzureau wrote:
> :-)
>
> If you do find some alternative icons that are available free of use,
> please let us know.
> just like we will be setting up an addins/customPopups directory, I
> think it would be
> a good idea to have an addins/customMarkers
>
> Thanks, Xin!
> erik
>
> On Wed, Apr 2, 2008 at 2:51 AM, Xin wrote:
>> The markers I'm currently using are those diamond shapes ones. Are there any
>> better looking free-to-use markers out there?
>>
>> I am right to assume I can't just use Google's?
>>
>> thanks
>> Xin
>>
>> _______________________________________________
>> Users mailing list
>> Users@openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
From bartvde at osgis.nl Wed Apr 2 10:10:23 2008
From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS))
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Which JavaScript Obfuscator does OpenLayers
use?
Message-ID:
jsmin, see:
tools/jsmin.py
Best regards,
Bart
--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl
--------- Oorspronkelijk bericht --------
Van: Bellenger, Jim
Naar: users@openlayers.org
Onderwerp: [OpenLayers-Users] Which JavaScript Obfuscator does OpenLayers
use?
Datum: 02/04/08 12:08
>
>
>
>
>
> Which JavaScript Obfuscator does OpenLayers use?
>
>
>
>
> I was wondering which JavaScript Obfuscator does OpenLayers use to crunch
down the scripts?
>
>
> Jim Bellenger
> Imagery and Geospatial Scientist
> NGA/II-GIAT
> 314-263-4924/4728, DSN 693-4924/4728
> Secure 577-3543
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
From crschmidt at metacarta.com Wed Apr 2 10:13:49 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Which JavaScript Obfuscator does OpenLayers
use?
In-Reply-To: <98C277567E731946AF64A9008432DD0A064EF625@XCGSTL01.gold.rtgold.nima.mil>
References: <98C277567E731946AF64A9008432DD0A064EF625@XCGSTL01.gold.rtgold.nima.mil>
Message-ID: <20080402141349.GA2394@metacarta.com>
On Wed, Apr 02, 2008 at 09:08:31AM -0500, Bellenger, Jim wrote:
> I was wondering which JavaScript Obfuscator does OpenLayers use to
> crunch down the scripts?
Jim,
The default build tools, used to create the 'shipping' versions of
OpenLayers, use a Python port of jsmin. (This file is available in the
tools/ directory.)
jsmin is not designed to be an obfuscator: just a basic compressor.
It is possible to use any Javascript compressor to compress OpenLayers
code, if jsmin does not fit your needs: simply use the
./buildUncompressed.py tool in the build directory to build and
uncompressed library, then run the result through your compressor of
choice.
Regards,
--
Christopher Schmidt
MetaCarta
From simone.gadenz at jrc.it Wed Apr 2 10:18:26 2008
From: simone.gadenz at jrc.it (Simone Gadenz)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Problem with map server single tile
Message-ID: <004701c894cc$6addd020$40997060$@gadenz@jrc.it>
Hello!
I have a problem of positioning with a map server single layer over a
spheric mercator base layer.
The definition of the map server layer is:
// create dma default layer
dmadef = new OpenLayers.Layer.MapServer( "Digital Map Archive Default",
"http://139.191.68.15:8000/cgi-bin/mapserv.exe?map=C:/MS_MapFiles/dmaclient/
dmadefault.map&mode=map",
{layers: '0,00,1,2,3',
reaspect: false,
transparent: true,
isBaseLayer: false,
wrapDateLine: true},
{singleTile: true,
ratio: 1,
opacity: 0.3,
transitionEffect: 'resize'}
);
When the application starts (the initial extent is set using the
map.zoomToMaxExtent() method) the single layer is positioned on the right
side of the screen and it goes out of the page for half of its width.
When I zoom in thinghs work perfectly.
If I use a tiled layer every single tiles positions correctly.
In fact I would like to use tiles but in that case I have a lot of problem
with myltiple labels.
Suggestion?
Simone
From simone.gadenz at jrc.it Wed Apr 2 10:18:12 2008
From: simone.gadenz at jrc.it (Simone Gadenz)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] FramedCloud GEORSS support
In-Reply-To: <20080402114735.GB10049@metacarta.com>
References: <9C37154DC7C8074FBC34214363755B7C1EB341@ITB-SVR-01.itbeyond.local>
<20080402114735.GB10049@metacarta.com>
Message-ID: <004601c894cc$625a8d80$270fa880$@gadenz@jrc.it>
My 2 cents:
I load the GeoRSs through a GML layer using a GeoRSS format. I modified a
bit the GeoRSS format class to give the user the possibility of defining the
field he wants to use for symbolizations.
This is the html that works for me:
var in_options = {
'internalProjection': new OpenLayers.Projection("EPSG:900913"),
'externalProjection': new OpenLayers.Projection("EPSG:4326"),
'type':'eventType alertLevel'
};
// create a GeoRSS layer
// Inorder to accomodate all the possible geometry type the layer
must be a GML layer with a GeoRSS format
// defining styles
var styleMap = new OpenLayers.StyleMap({
fillOpacity: 1,
pointRadius: 10
});
// create a lookup table with different symbolizers for 0, 1 and 2
var lookup = {
EQGreen: {externalGraphic: "images/eqgreen.jpg"},
EQOrange: {externalGraphic: "images/eqorange.jpg"},
EQRed: {externalGraphic: "images/eqred.jpg"},
TCGreen: {externalGraphic: "images/tcgreen.jpg"},
TCOrange: {externalGraphic: "images/tcorange.jpg"},
TCRed: {externalGraphic: "images/tcred.jpg"},
FLGreen: {externalGraphic: "images/flgreen.jpg"},
FLOrange: {externalGraphic: "images/florange.jpg"},
FLRed: {externalGraphic: "images/flred.jpg"},
VOGreen: {externalGraphic: "images/vogreen.jpg"},
VOOrange: {externalGraphic: "images/voorange.jpg"},
VORed: {externalGraphic: "images/vored.jpg"}
}
// add rules from the above lookup table, with the keyes mapped to
// the "type" property of the features, for the "default" intent
styleMap.addUniqueValueRules("default", "type", lookup);
var georssformat = new OpenLayers.Format.GeoRSS(in_options);
var gmllayer = new OpenLayers.Layer.GML("GDACS Alerts", "RSS.xml",
{'format': georssformat, styleMap: styleMap});
Hope this helps!
Simone
From simone.gadenz at jrc.it Wed Apr 2 10:21:31 2008
From: simone.gadenz at jrc.it (Simone Gadenz)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] FW: FramedCloud GEORSS support [completed]
Message-ID: <004801c894cc$d913c590$8b3b50b0$@gadenz@jrc.it>
My 2 cents:
I load the GeoRSs through a GML layer using a GeoRSS format. I modified a
bit the GeoRSS format class to give the user the possibility of defining the
field he wants to use for symbolizations.
This is the html that works for me:
var in_options = {
'internalProjection': new OpenLayers.Projection("EPSG:900913"),
'externalProjection': new OpenLayers.Projection("EPSG:4326"),
'type':'eventType alertLevel'
};
// create a GeoRSS layer
// Inorder to accomodate all the possible geometry type the layer
must be a GML layer with a GeoRSS format
// defining styles
var styleMap = new OpenLayers.StyleMap({
fillOpacity: 1,
pointRadius: 10
});
// create a lookup table with different symbolizers for 0, 1 and 2
var lookup = {
EQGreen: {externalGraphic: "images/eqgreen.jpg"},
EQOrange: {externalGraphic: "images/eqorange.jpg"},
EQRed: {externalGraphic: "images/eqred.jpg"},
TCGreen: {externalGraphic: "images/tcgreen.jpg"},
TCOrange: {externalGraphic: "images/tcorange.jpg"},
TCRed: {externalGraphic: "images/tcred.jpg"},
FLGreen: {externalGraphic: "images/flgreen.jpg"},
FLOrange: {externalGraphic: "images/florange.jpg"},
FLRed: {externalGraphic: "images/flred.jpg"},
VOGreen: {externalGraphic: "images/vogreen.jpg"},
VOOrange: {externalGraphic: "images/voorange.jpg"},
VORed: {externalGraphic: "images/vored.jpg"}
}
// add rules from the above lookup table, with the keyes mapped to
// the "type" property of the features, for the "default" intent
styleMap.addUniqueValueRules("default", "type", lookup);
var georssformat = new OpenLayers.Format.GeoRSS(in_options);
var gmllayer = new OpenLayers.Layer.GML("GDACS Alerts", "RSS.xml",
{'format': georssformat, styleMap: styleMap});
Then I added these functions
function onPopupClose(evt) {
selectControl.unselect(selectedFeature);
}
function onFeatureSelect(feature) {
selectedFeature = feature;
popup = new OpenLayers.Popup.FramedCloud("chicken",
feature.geometry.getBounds().getCenterLonLat(),
new OpenLayers.Size(250,100),
"
",
null, true, onPopupClose);
feature.popup = popup;
map.addPopup(popup);
}
function onFeatureUnselect(feature) {
map.removePopup(feature.popup);
feature.popup.destroy();
feature.popup = null;
}
Hope this helps!
Simone
From simone.gadenz at jrc.it Wed Apr 2 11:23:07 2008
From: simone.gadenz at jrc.it (Simone Gadenz)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] LayerSwitcher control customisation
Message-ID: <000001c894d5$73fa7d80$5bef7880$@gadenz@jrc.it>
Hello again.
I'd like to modify the LayerSwitcher control to:
- include the management of the transparency of the layers directly in
there;
- add buttons for each layer for reading metadata and similar information
Anybody thought already about it?
How is the list of the layer written into the component?
Thanks
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/09ad6f10/attachment.html
From linda.rawson at gmail.com Wed Apr 2 12:57:31 2008
From: linda.rawson at gmail.com (Linda Rawson)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Extensions on OpenLayers code
Message-ID: <6e9b30fb0804020957g2bc432dfqda11c3915809a91c@mail.gmail.com>
I have several custom enhancements I have made to the source code. With the
onset of a new release I would like to put these in a separate file and
"override" the code that is in the release. For instance I might want to
add the following function, just an example, it might already be in there to
Map.js
getLayerByName: function(name) {
var foundLayer = null;
for (var i = 0; i < this.layers.length; i++) {
var layer = this.layers[i];
if (layer.name == name) {
foundLayer = layer;
}
}
return foundLayer;
},
Would I do something like the following in a .js file to be called after
Openlayers.js?
Map.prototype.getLayerByName=function(name) {
var foundLayer = null;
for (var i = 0; i < this.layers.length; i++) {
var layer = this.layers[i];
if (layer.name == name) {
foundLayer = layer;
}
}
return foundLayer;
}
How do you do this?
--
Linda Rawson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/87a83a22/attachment.html
From crschmidt at metacarta.com Wed Apr 2 14:16:00 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Extensions on OpenLayers code
In-Reply-To: <6e9b30fb0804020957g2bc432dfqda11c3915809a91c@mail.gmail.com>
References: <6e9b30fb0804020957g2bc432dfqda11c3915809a91c@mail.gmail.com>
Message-ID: <20080402181600.GC14640@metacarta.com>
On Wed, Apr 02, 2008 at 10:57:31AM -0600, Linda Rawson wrote:
> I have several custom enhancements I have made to the source code. With the
> onset of a new release I would like to put these in a separate file and
> "override" the code that is in the release. For instance I might want to
> add the following function, just an example, it might already be in there to
> Map.js
>
> getLayerByName: function(name) {
> var foundLayer = null;
> for (var i = 0; i < this.layers.length; i++) {
> var layer = this.layers[i];
> if (layer.name == name) {
> foundLayer = layer;
> }
> }
> return foundLayer;
> },
> Would I do something like the following in a .js file to be called after
> Openlayers.js?
>
> Map.prototype.getLayerByName=function(name) {
> var foundLayer = null;
> for (var i = 0; i < this.layers.length; i++) {
> var layer = this.layers[i];
> if (layer.name == name) {
> foundLayer = layer;
> }
> }
> return foundLayer;
> }
>
Yes, this is what I would do.
Regards,
--
Christopher Schmidt
MetaCarta
From linda.rawson at gmail.com Wed Apr 2 14:44:51 2008
From: linda.rawson at gmail.com (Linda Rawson)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Extensions on OpenLayers code
In-Reply-To: <20080402181600.GC14640@metacarta.com>
References: <6e9b30fb0804020957g2bc432dfqda11c3915809a91c@mail.gmail.com>
<20080402181600.GC14640@metacarta.com>
Message-ID: <6e9b30fb0804021144s92a097ev31a313224060a05b@mail.gmail.com>
Is that the right syntax?
On Wed, Apr 2, 2008 at 12:16 PM, Christopher Schmidt <
crschmidt@metacarta.com> wrote:
> On Wed, Apr 02, 2008 at 10:57:31AM -0600, Linda Rawson wrote:
> > I have several custom enhancements I have made to the source code. With
> the
> > onset of a new release I would like to put these in a separate file and
> > "override" the code that is in the release. For instance I might want
> to
> > add the following function, just an example, it might already be in
> there to
> > Map.js
> >
> > getLayerByName: function(name) {
> > var foundLayer = null;
> > for (var i = 0; i < this.layers.length; i++) {
> > var layer = this.layers[i];
> > if (layer.name == name) {
> > foundLayer = layer;
> > }
> > }
> > return foundLayer;
> > },
> > Would I do something like the following in a .js file to be called after
> > Openlayers.js?
> >
> > Map.prototype.getLayerByName=function(name) {
> > var foundLayer = null;
> > for (var i = 0; i < this.layers.length; i++) {
> > var layer = this.layers[i];
> > if (layer.name == name) {
> > foundLayer = layer;
> > }
> > }
> > return foundLayer;
> > }
> >
>
> Yes, this is what I would do.
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
>
--
Linda Rawson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/155e5e9f/attachment.html
From pagameba at gmail.com Wed Apr 2 14:50:57 2008
From: pagameba at gmail.com (Paul Spencer)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Extensions on OpenLayers code
In-Reply-To: <6e9b30fb0804021144s92a097ev31a313224060a05b@mail.gmail.com>
References: <6e9b30fb0804020957g2bc432dfqda11c3915809a91c@mail.gmail.com>
<20080402181600.GC14640@metacarta.com>
<6e9b30fb0804021144s92a097ev31a313224060a05b@mail.gmail.com>
Message-ID: <3F6024EE-AA27-42E9-9075-99E34A89B379@gmail.com>
try OpenLayers.Map.prototype
Cheers
Paul
On 2-Apr-08, at 2:44 PM, Linda Rawson wrote:
> Is that the right syntax?
>
> On Wed, Apr 2, 2008 at 12:16 PM, Christopher Schmidt > wrote:
> On Wed, Apr 02, 2008 at 10:57:31AM -0600, Linda Rawson wrote:
> > I have several custom enhancements I have made to the source
> code. With the
> > onset of a new release I would like to put these in a separate
> file and
> > "override" the code that is in the release. For instance I might
> want to
> > add the following function, just an example, it might already be
> in there to
> > Map.js
> >
> > getLayerByName: function(name) {
> > var foundLayer = null;
> > for (var i = 0; i < this.layers.length; i++) {
> > var layer = this.layers[i];
> > if (layer.name == name) {
> > foundLayer = layer;
> > }
> > }
> > return foundLayer;
> > },
> > Would I do something like the following in a .js file to be called
> after
> > Openlayers.js?
> >
> > Map.prototype.getLayerByName=function(name) {
> > var foundLayer = null;
> > for (var i = 0; i < this.layers.length; i++) {
> > var layer = this.layers[i];
> > if (layer.name == name) {
> > foundLayer = layer;
> > }
> > }
> > return foundLayer;
> > }
> >
>
> Yes, this is what I would do.
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
>
>
>
> --
> Linda Rawson _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
From B.Sandvik at sms.ed.ac.uk Wed Apr 2 14:54:20 2008
From: B.Sandvik at sms.ed.ac.uk (Bjorn Sandvik)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] GDAL2Tiles
Message-ID: <47F3D65C.5020805@sms.ed.ac.uk>
Hey,
Has anyone managed to load georeferenced map tiles generated by
gdal2tiles into OpenLayers?
This is the code generated by gdal2tiles:
http://www.thematicmapping.org/maptiles/naturalearth/openlayers.html
Only pixel based view is supported, which makes is difficult to combine
map tiles with other data layers.
Is there an alternative way of loading map tiles? Or is there a better
alternative to gdal2tiles?
About GDAL2Tiles:
http://blog.thematicmapping.org/2008/03/generating-map-tiles-with-gdal2tiles.html
Thanks,
Bjorn
http://blog.thematicmapping.org
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
From crschmidt at metacarta.com Wed Apr 2 15:15:19 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] GDAL2Tiles
In-Reply-To: <47F3D65C.5020805@sms.ed.ac.uk>
References: <47F3D65C.5020805@sms.ed.ac.uk>
Message-ID: <20080402191518.GA3223@metacarta.com>
On Wed, Apr 02, 2008 at 07:54:20PM +0100, Bjorn Sandvik wrote:
> This is the code generated by gdal2tiles:
> http://www.thematicmapping.org/maptiles/naturalearth/openlayers.html
> Only pixel based view is supported, which makes is difficult to combine
> map tiles with other data layers.
I saw this same thing mentioned in some blog posting somewhere, and I
thought "huh, someone is confused": in fact, this lines up exactly with
the TMS spec, and can be used with practically no changes by the default
TMS layer:
http://crschmidt.net/mapping/naturalearth.html
You just need to specify a serviceVersion of '.' . (This is pulled
almost exactly from the TMS example that ships with OpenLayers.)
> Is there an alternative way of loading map tiles?
Other than the TMS layer?
> Or is there a better alternative to gdal2tiles?
None needed, so far as I can tell.
Regards,
--
Christopher Schmidt
MetaCarta
From bluecarto at gmail.com Wed Apr 2 15:18:03 2008
From: bluecarto at gmail.com (Pierre GIRAUD)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Extensions on OpenLayers code
In-Reply-To: <6e9b30fb0804020957g2bc432dfqda11c3915809a91c@mail.gmail.com>
References: <6e9b30fb0804020957g2bc432dfqda11c3915809a91c@mail.gmail.com>
Message-ID:
For your information, there's currently a method (getLayersByName [1])
that is already written and might match your needs.
http://dev.openlayers.org/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.getLayersByName
Regards,
Pierre
On Wed, Apr 2, 2008 at 6:57 PM, Linda Rawson wrote:
> I have several custom enhancements I have made to the source code. With the
> onset of a new release I would like to put these in a separate file and
> "override" the code that is in the release. For instance I might want to
> add the following function, just an example, it might already be in there to
> Map.js
>
> getLayerByName: function(name) {
> var foundLayer = null;
> for (var i = 0; i < this.layers.length; i++) {
> var layer = this.layers[i];
> if (layer.name == name) {
> foundLayer = layer;
> }
> }
> return foundLayer;
> },
>
> Would I do something like the following in a .js file to be called after
> Openlayers.js?
>
> Map.prototype.getLayerByName=function(name) {
> var foundLayer = null;
> for (var i = 0; i < this.layers.length; i++) {
> var layer = this.layers[i];
> if (layer.name == name) {
> foundLayer = layer;
> }
> }
> return foundLayer;
> }
>
> How do you do this?
> --
> Linda Rawson
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
From B.Sandvik at sms.ed.ac.uk Wed Apr 2 16:17:20 2008
From: B.Sandvik at sms.ed.ac.uk (Bjorn Sandvik)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] GDAL2Tiles
In-Reply-To: <20080402191518.GA3223@metacarta.com>
References: <47F3D65C.5020805@sms.ed.ac.uk>
<20080402191518.GA3223@metacarta.com>
Message-ID: <47F3E9D0.8090809@sms.ed.ac.uk>
Wow - it works!
http://www.thematicmapping.org/openlayers/fullscreen.htm
Thanks a lot! OpenLayers keeps impressing me.
And, I'm often very confused ;-)
Bjorn
http://blog.thematicmapping.org
Christopher Schmidt wrote:
> On Wed, Apr 02, 2008 at 07:54:20PM +0100, Bjorn Sandvik wrote:
>
>> This is the code generated by gdal2tiles:
>> http://www.thematicmapping.org/maptiles/naturalearth/openlayers.html
>> Only pixel based view is supported, which makes is difficult to combine
>> map tiles with other data layers.
>>
>
> I saw this same thing mentioned in some blog posting somewhere, and I
> thought "huh, someone is confused": in fact, this lines up exactly with
> the TMS spec, and can be used with practically no changes by the default
> TMS layer:
>
> http://crschmidt.net/mapping/naturalearth.html
>
> You just need to specify a serviceVersion of '.' . (This is pulled
> almost exactly from the TMS example that ships with OpenLayers.)
>
>
>> Is there an alternative way of loading map tiles?
>>
>
> Other than the TMS layer?
>
>
>> Or is there a better alternative to gdal2tiles?
>>
>
> None needed, so far as I can tell.
>
> Regards,
>
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
From linda.rawson at gmail.com Wed Apr 2 17:13:54 2008
From: linda.rawson at gmail.com (Linda Rawson)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html
Message-ID: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com>
I want to make the panZoomBar contain specific scales. How do I do that?
I have tried the following the the zoomLevels.html
var lon = 50;
var lat = 0;
var zoom = 0;
var map, layer;
function init(){
OpenLayers.DOTS_PER_INCH = 72;
var options = {
scales: [50000000, 10000000],
controls: [new
OpenLayers.Control.MouseDefaults()]
};
map = new OpenLayers.Map( 'map' , options);
map.addControl(new OpenLayers.Control.PanZoomBar());
layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0", {layers:
'basic'});
map.addLayer(layer);
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
}
I expected to see only two bars in the PanZoomBar. What do I need to do to
see that?
--
Linda Rawson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/8e8894e9/attachment.html
From diegoguidi at gmail.com Wed Apr 2 17:17:39 2008
From: diegoguidi at gmail.com (Diego Guidi)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html
In-Reply-To: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com>
References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com>
Message-ID:
I think that the correct param is resolutions and not scales
so
resolutions: [50000000, 10000000],
On Wed, Apr 2, 2008 at 11:13 PM, Linda Rawson wrote:
> I want to make the panZoomBar contain specific scales. How do I do that?
>
> I have tried the following the the zoomLevels.html
>
> var lon = 50;
> var lat = 0;
> var zoom = 0;
> var map, layer;
> function init(){
> OpenLayers.DOTS_PER_INCH = 72;
> var options = {
> scales: [50000000, 10000000],
> controls: [new
> OpenLayers.Control.MouseDefaults()]
> };
> map = new OpenLayers.Map( 'map' , options);
> map.addControl(new OpenLayers.Control.PanZoomBar());
> layer = new OpenLayers.Layer.WMS( "OpenLayers WMS",
> "http://labs.metacarta.com/wms/vmap0", {layers:
> 'basic'});
> map.addLayer(layer);
>
> map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
> }
>
> I expected to see only two bars in the PanZoomBar. What do I need to do to
> see that?
>
> --
> Linda Rawson
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
--
Diego Guidi
http://lacorrente.blogspot.com
From crschmidt at metacarta.com Wed Apr 2 17:33:31 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html
In-Reply-To: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com>
References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com>
Message-ID: <20080402213331.GB18293@metacarta.com>
On Wed, Apr 02, 2008 at 03:13:54PM -0600, Linda Rawson wrote:
> I want to make the panZoomBar contain specific scales. How do I do that?
Works for me:
http://crschmidt.net/mapping/2zooms.html
Regards,
--
Christopher Schmidt
MetaCarta
From linda.rawson at gmail.com Wed Apr 2 17:46:30 2008
From: linda.rawson at gmail.com (Linda Rawson)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html
In-Reply-To: <20080402213331.GB18293@metacarta.com>
References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com>
<20080402213331.GB18293@metacarta.com>
Message-ID: <6e9b30fb0804021446h5184fb5fv2bd42791a8168bc6@mail.gmail.com>
Thanks Christopher.
On your example when I click on the zoom bar nothing happens. The slider
works but the click on the zoom bar doesn't.
On Wed, Apr 2, 2008 at 3:33 PM, Christopher Schmidt
wrote:
> On Wed, Apr 02, 2008 at 03:13:54PM -0600, Linda Rawson wrote:
> > I want to make the panZoomBar contain specific scales. How do I do
> that?
>
> Works for me:
>
> http://crschmidt.net/mapping/2zooms.html
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
>
--
Linda Rawson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/d9e2926e/attachment.html
From crschmidt at metacarta.com Wed Apr 2 18:01:29 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html
In-Reply-To: <6e9b30fb0804021446h5184fb5fv2bd42791a8168bc6@mail.gmail.com>
References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com>
<20080402213331.GB18293@metacarta.com>
<6e9b30fb0804021446h5184fb5fv2bd42791a8168bc6@mail.gmail.com>
Message-ID: <20080402220129.GA24242@metacarta.com>
On Wed, Apr 02, 2008 at 03:46:30PM -0600, Linda Rawson wrote:
> Thanks Christopher.
>
> On your example when I click on the zoom bar nothing happens. The slider
> works but the click on the zoom bar doesn't.
You can never click on the top 'rung' of a zoombar. If that's a problem
for you, feel free to open a ticket for 2.7.
Regards,
--
Christopher Schmidt
MetaCarta
From linda.rawson at gmail.com Wed Apr 2 18:07:59 2008
From: linda.rawson at gmail.com (Linda Rawson)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html
In-Reply-To: <20080402220129.GA24242@metacarta.com>
References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com>
<20080402213331.GB18293@metacarta.com>
<6e9b30fb0804021446h5184fb5fv2bd42791a8168bc6@mail.gmail.com>
<20080402220129.GA24242@metacarta.com>
Message-ID: <6e9b30fb0804021507u76e1c11an481ed9d536419d1e@mail.gmail.com>
Even when I slide the slider to the top rung and click on the bottom rung
nothing happens.
So I tried adding the following scales:
scales: [50000000, 30000000, 20000000,10000000],
Totally screwy mouse clicks. When I click L2 it goes to L3. I have to
double click some of the bars to get them to zoom.
On Wed, Apr 2, 2008 at 4:01 PM, Christopher Schmidt
wrote:
> On Wed, Apr 02, 2008 at 03:46:30PM -0600, Linda Rawson wrote:
> > Thanks Christopher.
> >
> > On your example when I click on the zoom bar nothing happens. The
> slider
> > works but the click on the zoom bar doesn't.
>
> You can never click on the top 'rung' of a zoombar. If that's a problem
> for you, feel free to open a ticket for 2.7.
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
>
--
Linda Rawson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080402/97716b50/attachment.html
From bluecarto at gmail.com Thu Apr 3 04:25:21 2008
From: bluecarto at gmail.com (Pierre GIRAUD)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] OpenLayers and ExtJs
Message-ID:
Yet another combination of OpenLayers and ExtJs.
http://tdubya.net/index.php/2007/12/07/combining-openlayers-and-ext/
Side note, tdubya uses the MapFish MapComponent.
Regards,
Pierre
From xin at zenpow.com Thu Apr 3 05:08:01 2008
From: xin at zenpow.com (Xin)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] any good-looking marker icons out there?
In-Reply-To: <47F3A1C4.8030806@swoodbridge.com>
References:
<6ae3fb590804020647v2fd55fcdo43319c77deb43c07@mail.gmail.com>
<47F3A1C4.8030806@swoodbridge.com>
Message-ID:
Thanks for the input. I'll check them later on. I might also look into
commissioning a designer to create some markers for OpenLayers. That'd be
cool.
On 02/04/2008, Stephen Woodbridge wrote:
>
> You might want to check out what ka-map has, it is likely we can use
> those.
>
> You might also want to check out msCross, they have a simple clean balloon
> with a shadow thats looks nice. http://sourceforge.net/projects/mscross I
> would think that we can ask either of these for permission to use their
> icons.
>
> Another option might be to ask the community if any of the graphic
> designers out there would like to create some sample icons that they would
> be willing to contribute to be a part of OpenLayers. Run a contest and have
> the community vote on them.
>
> -Steve W
>
>
> Erik Uzureau wrote:
>
> > :-)
> >
> > If you do find some alternative icons that are available free of use,
> > please let us know.
> > just like we will be setting up an addins/customPopups directory, I
> > think it would be
> > a good idea to have an addins/customMarkers
> >
> > Thanks, Xin!
> > erik
> >
> > On Wed, Apr 2, 2008 at 2:51 AM, Xin wrote:
> >
> > > The markers I'm currently using are those diamond shapes ones. Are
> > > there any
> > > better looking free-to-use markers out there?
> > >
> > > I am right to assume I can't just use Google's?
> > >
> > > thanks
> > > Xin
> > >
> > > _______________________________________________
> > > Users mailing list
> > > Users@openlayers.org
> > > http://openlayers.org/mailman/listinfo/users
> > >
> > >
> > > _______________________________________________
> > Users mailing list
> > Users@openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080403/c585f4a9/attachment.html
From linda.rawson at gmail.com Thu Apr 3 11:39:23 2008
From: linda.rawson at gmail.com (Linda Rawson)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html
In-Reply-To: <6e9b30fb0804021507u76e1c11an481ed9d536419d1e@mail.gmail.com>
References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com>
<20080402213331.GB18293@metacarta.com>
<6e9b30fb0804021446h5184fb5fv2bd42791a8168bc6@mail.gmail.com>
<20080402220129.GA24242@metacarta.com>
<6e9b30fb0804021507u76e1c11an481ed9d536419d1e@mail.gmail.com>
Message-ID: <6e9b30fb0804030839o35f3674dtbda162a071afc734@mail.gmail.com>
I found the problem. Somebody changed this line in PanZoomBar.js
FROM:
var levels = Math.floor((y - top)/this.zoomStopHeight);
TO:
var levels = (y - top)/this.zoomStopHeight;
This is causing the problem.
Linda
On Wed, Apr 2, 2008 at 4:07 PM, Linda Rawson wrote:
> Even when I slide the slider to the top rung and click on the bottom rung
> nothing happens.
>
> So I tried adding the following scales:
>
> scales: [50000000, 30000000, 20000000,10000000],
>
> Totally screwy mouse clicks. When I click L2 it goes to L3. I have to
> double click some of the bars to get them to zoom.
>
> On Wed, Apr 2, 2008 at 4:01 PM, Christopher Schmidt <
> crschmidt@metacarta.com> wrote:
>
> > On Wed, Apr 02, 2008 at 03:46:30PM -0600, Linda Rawson wrote:
> > > Thanks Christopher.
> > >
> > > On your example when I click on the zoom bar nothing happens. The
> > slider
> > > works but the click on the zoom bar doesn't.
> >
> > You can never click on the top 'rung' of a zoombar. If that's a problem
> > for you, feel free to open a ticket for 2.7.
> >
> > Regards,
> > --
> > Christopher Schmidt
> > MetaCarta
> >
>
>
>
> --
> Linda Rawson
--
Linda Rawson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080403/f5a75c1f/attachment.html
From linda.rawson at gmail.com Thu Apr 3 11:56:38 2008
From: linda.rawson at gmail.com (Linda Rawson)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Spherical Mercator and PanZoomBar with Scales
Message-ID: <6e9b30fb0804030856q2a36128bh3bf2bda0746d5a57@mail.gmail.com>
What I was hoping for with 2.6 was the following:
var map, layer;
function init(){
var options = {
scales:
[55468034,13867008,3466752,108336,54168,27084,13542,6771],
projection: "EPSG:900913",
units: "m",
maxExtent: new
OpenLayers.Bounds(-20037508,-20037508,20037508,20037508.34),
controls: []
};
map = new OpenLayers.Map( 'map' , options);
map.addControl(new OpenLayers.Control.PanZoomBar());
layer = new OpenLayers.Layer.Google("Base",{'sphericalMercator':
true});
map.addLayer(layer);
map.zoomToMaxExtent();
}
Should show 8 bars on the panzoombar. But it still shows the default number
of zoom levels defined when you say sphericalMercator: true.
Is there any way to do this without customizing the panzoombar?
Thanks!
--
Linda Rawson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080403/e9d5de74/attachment.html
From crschmidt at metacarta.com Thu Apr 3 12:04:01 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html
In-Reply-To: <6e9b30fb0804030839o35f3674dtbda162a071afc734@mail.gmail.com>
References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com>
<20080402213331.GB18293@metacarta.com>
<6e9b30fb0804021446h5184fb5fv2bd42791a8168bc6@mail.gmail.com>
<20080402220129.GA24242@metacarta.com>
<6e9b30fb0804021507u76e1c11an481ed9d536419d1e@mail.gmail.com>
<6e9b30fb0804030839o35f3674dtbda162a071afc734@mail.gmail.com>
Message-ID: <20080403160401.GA2206@metacarta.com>
On Thu, Apr 03, 2008 at 09:39:23AM -0600, Linda Rawson wrote:
> I found the problem. Somebody changed this line in PanZoomBar.js
>
> FROM:
>
> var levels = Math.floor((y - top)/this.zoomStopHeight);
>
> TO:
>
> var levels = (y - top)/this.zoomStopHeight;
>
> This is causing the problem.
Math.floor is called (if your map doesn't have fractionalZoom) two lines
later, on the zoom. Can you explain why this is a problem in your setup?
A more complete HTML example with the behavior you expect and the
behavior you're getting would be helpful.
Regards,
--
Christopher Schmidt
MetaCarta
From crschmidt at metacarta.com Thu Apr 3 12:05:52 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Spherical Mercator and PanZoomBar with Scales
In-Reply-To: <6e9b30fb0804030856q2a36128bh3bf2bda0746d5a57@mail.gmail.com>
References: <6e9b30fb0804030856q2a36128bh3bf2bda0746d5a57@mail.gmail.com>
Message-ID: <20080403160552.GB2206@metacarta.com>
On Thu, Apr 03, 2008 at 09:56:38AM -0600, Linda Rawson wrote:
> What I was hoping for with 2.6 was the following:
2.6 doesn't change the behavior in this regard in any way I'm aware of.
Was there something that made you think it would?
There is no way to define anything other than factor-of-two zoom changes
on a Google Maps baselayer in OpenLayers: hacking the zoombar won't help
you here.
-- Chris
> var map, layer;
> function init(){
> var options = {
> scales:
> [55468034,13867008,3466752,108336,54168,27084,13542,6771],
> projection: "EPSG:900913",
> units: "m",
> maxExtent: new
> OpenLayers.Bounds(-20037508,-20037508,20037508,20037508.34),
> controls: []
> };
> map = new OpenLayers.Map( 'map' , options);
> map.addControl(new OpenLayers.Control.PanZoomBar());
> layer = new OpenLayers.Layer.Google("Base",{'sphericalMercator':
> true});
> map.addLayer(layer);
> map.zoomToMaxExtent();
> }
>
> Should show 8 bars on the panzoombar. But it still shows the default number
> of zoom levels defined when you say sphericalMercator: true.
>
> Is there any way to do this without customizing the panzoombar?
>
> Thanks!
>
> --
> Linda Rawson
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
--
Christopher Schmidt
MetaCarta
From progmls at googlemail.com Thu Apr 3 12:12:18 2008
From: progmls at googlemail.com (Guillaume Lom)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Closebutton Callback on popup?
Message-ID: <40e43de90804030912r559a8eb7ic1c168e13e916796@mail.gmail.com>
Hello,
I am creating popups through the Feature object:
this.popupClass = OpenLayers.Popup.FramedCloud;
this.popup = this.createPopup(true);
The 'true' parameter sets a close button on the popup.
I need however to do other cleaning stuff when a popup is closed. Is
there an official way to set up a callback function during the
creation of the popup? I would like to avoid using
this.popup.addCloseBox if I can hepl it.
Thanks,
Guillaume
From linda.rawson at gmail.com Thu Apr 3 12:18:45 2008
From: linda.rawson at gmail.com (Linda Rawson)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html
In-Reply-To: <20080403160401.GA2206@metacarta.com>
References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com>
<20080402213331.GB18293@metacarta.com>
<6e9b30fb0804021446h5184fb5fv2bd42791a8168bc6@mail.gmail.com>
<20080402220129.GA24242@metacarta.com>
<6e9b30fb0804021507u76e1c11an481ed9d536419d1e@mail.gmail.com>
<6e9b30fb0804030839o35f3674dtbda162a071afc734@mail.gmail.com>
<20080403160401.GA2206@metacarta.com>
Message-ID: <6e9b30fb0804030918y54069dafj9f66be3109c2c05f@mail.gmail.com>
Here is the example. Yours with two extra scales.
OpenLayers Basic Single WMS Example
Basic Single WMS Example
Show a Simple Map
This example shows a very simple layout with minimal controls.
This example uses a single WMS base layer.
Try clicking on the third zoom level. It does nothing. Then you
click on the second and the zoom goes to the third. It is off by one
every time. Then go the other direction. More havoc.
Linda
On Thu, Apr 3, 2008 at 10:04 AM, Christopher Schmidt
wrote:
>
> On Thu, Apr 03, 2008 at 09:39:23AM -0600, Linda Rawson wrote:
> > I found the problem. Somebody changed this line in PanZoomBar.js
> >
> > FROM:
> >
> > var levels = Math.floor((y - top)/this.zoomStopHeight);
> >
> > TO:
> >
> > var levels = (y - top)/this.zoomStopHeight;
> >
> > This is causing the problem.
>
> Math.floor is called (if your map doesn't have fractionalZoom) two lines
> later, on the zoom. Can you explain why this is a problem in your setup?
>
> A more complete HTML example with the behavior you expect and the
> behavior you're getting would be helpful.
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
>
--
Linda Rawson
From linda.rawson at gmail.com Thu Apr 3 12:21:27 2008
From: linda.rawson at gmail.com (Linda Rawson)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Spherical Mercator and PanZoomBar with Scales
In-Reply-To: <20080403160552.GB2206@metacarta.com>
References: <6e9b30fb0804030856q2a36128bh3bf2bda0746d5a57@mail.gmail.com>
<20080403160552.GB2206@metacarta.com>
Message-ID: <6e9b30fb0804030921p422a7aedqb85c974b95adffbd@mail.gmail.com>
Actually I have quite the hack to do this. But I was hoping not to
hack anymore! It looked so promising to be able to define scales on
the map that I was hoping it would carry over.
Thanks!
Linda
On Thu, Apr 3, 2008 at 10:05 AM, Christopher Schmidt
wrote:
> On Thu, Apr 03, 2008 at 09:56:38AM -0600, Linda Rawson wrote:
> > What I was hoping for with 2.6 was the following:
>
> 2.6 doesn't change the behavior in this regard in any way I'm aware of.
> Was there something that made you think it would?
>
> There is no way to define anything other than factor-of-two zoom changes
> on a Google Maps baselayer in OpenLayers: hacking the zoombar won't help
> you here.
>
> -- Chris
>
>
> > var map, layer;
> > function init(){
> > var options = {
> > scales:
> > [55468034,13867008,3466752,108336,54168,27084,13542,6771],
> > projection: "EPSG:900913",
> > units: "m",
> > maxExtent: new
> > OpenLayers.Bounds(-20037508,-20037508,20037508,20037508.34),
> > controls: []
> > };
> > map = new OpenLayers.Map( 'map' , options);
> > map.addControl(new OpenLayers.Control.PanZoomBar());
> > layer = new OpenLayers.Layer.Google("Base",{'sphericalMercator':
> > true});
> > map.addLayer(layer);
> > map.zoomToMaxExtent();
> > }
> >
> > Should show 8 bars on the panzoombar. But it still shows the default number
> > of zoom levels defined when you say sphericalMercator: true.
> >
> > Is there any way to do this without customizing the panzoombar?
> >
> > Thanks!
> >
> > --
> > Linda Rawson
>
> > _______________________________________________
> > Users mailing list
> > Users@openlayers.org
> > http://openlayers.org/mailman/listinfo/users
>
>
> --
> Christopher Schmidt
> MetaCarta
>
--
Linda Rawson
From crschmidt at metacarta.com Thu Apr 3 13:02:47 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html
In-Reply-To: <6e9b30fb0804030918y54069dafj9f66be3109c2c05f@mail.gmail.com>
References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com>
<20080402213331.GB18293@metacarta.com>
<6e9b30fb0804021446h5184fb5fv2bd42791a8168bc6@mail.gmail.com>
<20080402220129.GA24242@metacarta.com>
<6e9b30fb0804021507u76e1c11an481ed9d536419d1e@mail.gmail.com>
<6e9b30fb0804030839o35f3674dtbda162a071afc734@mail.gmail.com>
<20080403160401.GA2206@metacarta.com>
<6e9b30fb0804030918y54069dafj9f66be3109c2c05f@mail.gmail.com>
Message-ID: <20080403170246.GA3157@metacarta.com>
On Thu, Apr 03, 2008 at 10:18:45AM -0600, Linda Rawson wrote:
> Try clicking on the third zoom level. It does nothing. Then you
> click on the second and the zoom goes to the third. It is off by one
> every time. Then go the other direction. More havoc.
#1486
clicking in panzoombar -> off by one
Thanks for the report.
Regards,
--
Christopher Schmidt
MetaCarta
From crschmidt at metacarta.com Thu Apr 3 13:06:21 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Closebutton Callback on popup?
In-Reply-To: <40e43de90804030912r559a8eb7ic1c168e13e916796@mail.gmail.com>
References: <40e43de90804030912r559a8eb7ic1c168e13e916796@mail.gmail.com>
Message-ID: <20080403170621.GC3157@metacarta.com>
On Thu, Apr 03, 2008 at 05:12:18PM +0100, Guillaume Lom wrote:
> Hello,
>
> I am creating popups through the Feature object:
>
> this.popupClass = OpenLayers.Popup.FramedCloud;
> this.popup = this.createPopup(true);
>
> The 'true' parameter sets a close button on the popup.
> I need however to do other cleaning stuff when a popup is closed. Is
> there an official way to set up a callback function during the
> creation of the popup? I would like to avoid using
> this.popup.addCloseBox if I can hepl it.
There is no API through the feature.createPopup method. However, I would
recommend simply reading that code, and reimplementing it in your
application code (since you have a feature handle anyway): there is an
argument to popup creation, just not one to the feature wrapper around
it.
Regards,
--
Christopher Schmidt
MetaCarta
From pangelino at tnc.org Thu Apr 3 14:56:44 2008
From: pangelino at tnc.org (Paul Angelino)
Date: Wed Sep 1 17:16:12 2010
Subject: [OpenLayers-Users] Authenticating against a secured WMS server
under IIS
Message-ID: <32DFAB49E7503843809D10D473B98A1A77D05E@mail01.TNC.ORG>
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 53 bytes
Desc: image001.gif
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080403/c4762419/attachment.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 3343 bytes
Desc: image002.gif
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080403/c4762419/attachment-0001.gif
From woodbri at swoodbridge.com Thu Apr 3 16:32:12 2008
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] RC1 issue? with themes and styles
Message-ID: <47F53ECC.2060100@swoodbridge.com>
Hi all,
This might be my issue with not understanding the changes related to the
themes and styles and overriding the editing toolbar.
http://imaptools.com/~woodbri/edit/index26rc.php?extent=-129,19+-60,60
It looks like two of my icons are missing because it is trying to pull
them from the default theme instead of my override theme.
Did I miss this up somehow?
-Steve W
From woodbri at swoodbridge.com Thu Apr 3 17:07:06 2008
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] RC1 issue? with themes and styles
In-Reply-To: <47F53ECC.2060100@swoodbridge.com>
References: <47F53ECC.2060100@swoodbridge.com>
Message-ID: <47F546FA.6020607@swoodbridge.com>
Stephen Woodbridge wrote:
> Hi all,
>
> This might be my issue with not understanding the changes related to the
> themes and styles and overriding the editing toolbar.
>
> http://imaptools.com/~woodbri/edit/index26rc.php?extent=-129,19+-60,60
>
> It looks like two of my icons are missing because it is trying to pull
> them from the default theme instead of my override theme.
>
> Did I miss this up somehow?
>
> -Steve W
OK, as a work around, if I change all occurrences
olControlEditingToolbar to olControlMyEditingToolbar
in my code and override style.css it displays the right thing. But I
think some of the override theme stuff is broken 2.6rc1.
The above url now works with these changes, but the following shows the
case where it is broken:
http://imaptools.com/~woodbri/edit/broken.php?extent=-129,19+-60,60
-Steve W
From B.Sandvik at sms.ed.ac.uk Thu Apr 3 17:05:11 2008
From: B.Sandvik at sms.ed.ac.uk (Bjorn Sandvik)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Proportional Symbol Mapping
Message-ID: <47F54687.6090801@sms.ed.ac.uk>
Hi,
I'm currently testing the capabilities of doing thematic mapping with
OpenLayers.
This is a proportional symbol map based on GeoJSON encoded data:
http://thematicmapping.org/experiments/openlayers_propsymb.htm
My question: Is there a way to keep the relative size of the symbols
when the users zoom in/out?
(symbols should keep their size relative to the size of the countries).
Bjorn
http://blog.thematicmapping.org
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
From crschmidt at metacarta.com Thu Apr 3 22:15:01 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Authenticating against a secured WMS server
under IIS
In-Reply-To: <32DFAB49E7503843809D10D473B98A1A77D05E@mail01.TNC.ORG>
References: <32DFAB49E7503843809D10D473B98A1A77D05E@mail01.TNC.ORG>
Message-ID: <20080404021501.GB29886@metacarta.com>
On Thu, Apr 03, 2008 at 02:56:44PM -0400, Paul Angelino wrote:
> Hello,
>
>
>
> I'm pretty new to OpenLayers. I recently began using it to add spatial
> functionality to an existing non-spatial web app. We're publishing WMS
> services from an ArcGIS Server 9.2 instance under IIS, configured to
> prevent anonymous access. This is a good thing since some of the layers
> we're serving contain sensitive data. I saw this previous post to the
> user forum:
> http://openlayers.org/pipermail/users/2007-February/000721.html, which
> is exactly what is happening in my situation. The user gets prompted to
> authenticate against the web server. The problem is that the user has
> already been authenticated by the web application so I'd like to be able
> to programmatically impersonate the user to our WMS server so there is
> no prompting for credentials.
Do you have their credentials? (I'd hope, for security reasons, that you
wouldn't, but if you do, what you want is possible. Otherwise, it's not.)
If you do have their credentials, you can generate URLs like:
"http://username:password@example.com/wms/foo"
And their credentials will be passed by the browser.
> I don't see anything in the OpenLayers
> 2.5 API to support this, but I did run across this:
> http://trac.openlayers.org/browser/sandbox/tschaub/request/lib/OpenLayer
> s/Request.js?rev=6351. This OpenLayers.Request method seems to support
> username and password parameters for HTTP authentication.
This isn't helpful for you. You can already do this for XMLHttpRequest
in trunk (though you'd have to try harder): this doesn't really fix
things in any way.
> Is there a
> way that this can be used instead of a call to OpenLayers.Layer.WMS to
> instantiate a layer?
Nope.
> Is the OpenLayers.Request method something in the
> underlying library that is not exposed in the public API, or is this
> something slated for a future release?
The latter.
> Any information is greatly appreciated on how to access secured WMS
> layers without getting the popup authentication dialog.
Right answer: Use single signon: Kerberos, Active Directory, etc.
Wrong answer: Integrate user credentials in the URL.
Answer that helps you: Depends on how you're doing auth. Would need more
information on that for you to get helped.
Regards,
--
Christopher Schmidt
MetaCarta
From crschmidt at metacarta.com Thu Apr 3 22:30:06 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] RC1 issue? with themes and styles
In-Reply-To: <47F546FA.6020607@swoodbridge.com>
References: <47F53ECC.2060100@swoodbridge.com>
<47F546FA.6020607@swoodbridge.com>
Message-ID: <20080404023006.GD29886@metacarta.com>
On Thu, Apr 03, 2008 at 04:07:06PM -0500, Stephen Woodbridge wrote:
> Stephen Woodbridge wrote:
> OK, as a work around, if I change all occurrences
>
> olControlEditingToolbar to olControlMyEditingToolbar
>
> in my code and override style.css it displays the right thing. But I
> think some of the override theme stuff is broken 2.6rc1.
I've just checked: This code works exactly the same in 2.5. So
regardless of how broken it is, it does not appear to be a regression,
unless you can offer evidence otherwise.
(I downloaded broken.php, pointed the CSS to your files, and then
changed the OpenLayers file to reference 2.5 via /api/OpenLayers.js.)
Regards,
--
Christopher Schmidt
MetaCarta
From pangelino at tnc.org Thu Apr 3 22:32:29 2008
From: pangelino at tnc.org (Paul Angelino)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Authenticating against a secured WMS server
under IIS
In-Reply-To: <20080404021501.GB29886@metacarta.com>
References: <32DFAB49E7503843809D10D473B98A1A77D05E@mail01.TNC.ORG>
<20080404021501.GB29886@metacarta.com>
Message-ID: <32DFAB49E7503843809D10D473B98A1A77D1B0@mail01.TNC.ORG>
Chris,
Thanks for your reply. We don't have the credentials of the end user
that is logged into the web app, which is a good thing as you say, but
at this point we really just need to impersonate the user to the WMS
server based on a couple different authorization roles that apply. So
we could pass credentials through the URL but our security standards
won't allow us to do it in clear text.
To answer your other questions, we do use Active Directory for
authentication but we do not yet have single sign-on. Both the web
application using OpenLayers and the WMS server use AD authentication,
but they run on different web servers. In fact, the web app runs on
Apache and the WMS server runs on IIS. The web app uses an Open LDAP
interface to perform authentication and the IIS server uses the
out-of-the box Windows AD authentication when you disable anonymous
access to your web site.
Does that give you any other ideas?
Thanks again,
Paul
-----Original Message-----
From: Christopher Schmidt [mailto:crschmidt@metacarta.com]
Sent: Thursday, April 03, 2008 8:15 PM
To: Paul Angelino
Cc: users@openlayers.org
Subject: Re: [OpenLayers-Users] Authenticating against a secured WMS
server under IIS
On Thu, Apr 03, 2008 at 02:56:44PM -0400, Paul Angelino wrote:
> Hello,
>
>
>
> I'm pretty new to OpenLayers. I recently began using it to add
spatial
> functionality to an existing non-spatial web app. We're publishing
WMS
> services from an ArcGIS Server 9.2 instance under IIS, configured to
> prevent anonymous access. This is a good thing since some of the
layers
> we're serving contain sensitive data. I saw this previous post to the
> user forum:
> http://openlayers.org/pipermail/users/2007-February/000721.html, which
> is exactly what is happening in my situation. The user gets prompted
to
> authenticate against the web server. The problem is that the user has
> already been authenticated by the web application so I'd like to be
able
> to programmatically impersonate the user to our WMS server so there is
> no prompting for credentials.
Do you have their credentials? (I'd hope, for security reasons, that you
wouldn't, but if you do, what you want is possible. Otherwise, it's
not.)
If you do have their credentials, you can generate URLs like:
"http://username:password@example.com/wms/foo"
And their credentials will be passed by the browser.
> I don't see anything in the OpenLayers
> 2.5 API to support this, but I did run across this:
>
http://trac.openlayers.org/browser/sandbox/tschaub/request/lib/OpenLayer
> s/Request.js?rev=6351. This OpenLayers.Request method seems to
support
> username and password parameters for HTTP authentication.
This isn't helpful for you. You can already do this for XMLHttpRequest
in trunk (though you'd have to try harder): this doesn't really fix
things in any way.
> Is there a
> way that this can be used instead of a call to OpenLayers.Layer.WMS to
> instantiate a layer?
Nope.
> Is the OpenLayers.Request method something in the
> underlying library that is not exposed in the public API, or is this
> something slated for a future release?
The latter.
> Any information is greatly appreciated on how to access secured WMS
> layers without getting the popup authentication dialog.
Right answer: Use single signon: Kerberos, Active Directory, etc.
Wrong answer: Integrate user credentials in the URL.
Answer that helps you: Depends on how you're doing auth. Would need more
information on that for you to get helped.
Regards,
--
Christopher Schmidt
MetaCarta
From woodbri at swoodbridge.com Fri Apr 4 00:07:51 2008
From: woodbri at swoodbridge.com (Stephen Woodbridge)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] RC1 issue? with themes and styles
In-Reply-To: <20080404023006.GD29886@metacarta.com>
References: <47F53ECC.2060100@swoodbridge.com>
<47F546FA.6020607@swoodbridge.com>
<20080404023006.GD29886@metacarta.com>
Message-ID: <47F5A997.1030001@swoodbridge.com>
Christopher Schmidt wrote:
> On Thu, Apr 03, 2008 at 04:07:06PM -0500, Stephen Woodbridge wrote:
>> Stephen Woodbridge wrote:
>> OK, as a work around, if I change all occurrences
>>
>> olControlEditingToolbar to olControlMyEditingToolbar
>>
>> in my code and override style.css it displays the right thing. But I
>> think some of the override theme stuff is broken 2.6rc1.
>
> I've just checked: This code works exactly the same in 2.5. So
> regardless of how broken it is, it does not appear to be a regression,
> unless you can offer evidence otherwise.
>
> (I downloaded broken.php, pointed the CSS to your files, and then
> changed the OpenLayers file to reference 2.5 via /api/OpenLayers.js.)
Christopher,
Thank you for taking a look at this. I will accept your good judgement
on this and try to dig into this a little more for my own education.
The one thing I noticed while poking at this in FireBug and Inspecting
the DOM, was that the missing icons had the CSS from the 2.6rc1
style.css while all the others had the CSS applied from my override CSS.
So by changing the CSS class to olControlMyEditingToolbar I seem to have
avoided that conflict. I guess I'm not sure how the CSS rules get
applied in this case when you have two stylesheets both with the same
class names.
Thank you again for your effort and assistance.
-Steve
From eric.c2c at gmail.com Fri Apr 4 04:48:09 2008
From: eric.c2c at gmail.com (Eric Lemoine)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Proportional Symbol Mapping
In-Reply-To: <47F54687.6090801@sms.ed.ac.uk>
References: <47F54687.6090801@sms.ed.ac.uk>
Message-ID: <5ec103de0804040148g6726c09ak822b3b7cd2ae36b7@mail.gmail.com>
On Thu, Apr 3, 2008 at 11:05 PM, Bjorn Sandvik wrote:
> Hi,
>
> I'm currently testing the capabilities of doing thematic mapping with
> OpenLayers.
>
> This is a proportional symbol map based on GeoJSON encoded data:
> http://thematicmapping.org/experiments/openlayers_propsymb.htm
The big circles don't seem to behave correctly on hover.
>
> My question: Is there a way to keep the relative size of the symbols
> when the users zoom in/out?
AFAICT there's no way to style features based on the current zoom level.
But I guess you should be able to implement this in your application
code, by registering to the zoomend map event.
--
Eric
From bartvde at osgis.nl Fri Apr 4 05:52:14 2008
From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS))
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] RC1 issue? with themes and styles
In-Reply-To: <47F5A997.1030001@swoodbridge.com>
References: <47F53ECC.2060100@swoodbridge.com> <47F546FA.6020607@swoodbridge.com> <20080404023006.GD29886@metacarta.com>
<47F5A997.1030001@swoodbridge.com>
Message-ID: <47F5FA4E.1020706@osgis.nl>
Hi Stephen,
you can also try using !important in the stylesheet you want to prevail,
so you don't need to change the css class names, example:
.olXXX {
width: 200px !important;
height: 200px !important;
}
Best regards,
Bart
Stephen Woodbridge wrote:
> Christopher Schmidt wrote:
>
>> On Thu, Apr 03, 2008 at 04:07:06PM -0500, Stephen Woodbridge wrote:
>>
>>> Stephen Woodbridge wrote:
>>> OK, as a work around, if I change all occurrences
>>>
>>> olControlEditingToolbar to olControlMyEditingToolbar
>>>
>>> in my code and override style.css it displays the right thing. But I
>>> think some of the override theme stuff is broken 2.6rc1.
>>>
>> I've just checked: This code works exactly the same in 2.5. So
>> regardless of how broken it is, it does not appear to be a regression,
>> unless you can offer evidence otherwise.
>>
>> (I downloaded broken.php, pointed the CSS to your files, and then
>> changed the OpenLayers file to reference 2.5 via /api/OpenLayers.js.)
>>
>
> Christopher,
>
> Thank you for taking a look at this. I will accept your good judgement
> on this and try to dig into this a little more for my own education.
>
> The one thing I noticed while poking at this in FireBug and Inspecting
> the DOM, was that the missing icons had the CSS from the 2.6rc1
> style.css while all the others had the CSS applied from my override CSS.
> So by changing the CSS class to olControlMyEditingToolbar I seem to have
> avoided that conflict. I guess I'm not sure how the CSS rules get
> applied in this case when you have two stylesheets both with the same
> class names.
>
> Thank you again for your effort and assistance.
>
> -Steve
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
>
--
Bart van den Eijnden
OSGIS, Open Source GIS
bartvde@osgis.nl
http://www.osgis.nl
From crschmidt at metacarta.com Fri Apr 4 06:57:16 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Proportional Symbol Mapping
In-Reply-To: <5ec103de0804040148g6726c09ak822b3b7cd2ae36b7@mail.gmail.com>
References: <47F54687.6090801@sms.ed.ac.uk>
<5ec103de0804040148g6726c09ak822b3b7cd2ae36b7@mail.gmail.com>
Message-ID: <20080404105715.GC15153@metacarta.com>
On Fri, Apr 04, 2008 at 10:48:09AM +0200, Eric Lemoine wrote:
> On Thu, Apr 3, 2008 at 11:05 PM, Bjorn Sandvik wrote:
> > My question: Is there a way to keep the relative size of the symbols
> > when the users zoom in/out?
>
> AFAICT there's no way to style features based on the current zoom level.
I'm pretty sure that the StyleMap/Style/Rule system is designed exactly
for that, but I have no idea how it's supposed to work.
I would say "look at http://trac.openlayers.org/wiki/Styles", but I see
that it's using Rules for styling, which I think was recently decided
would be unsupported in OpenLayers 2.6, so I don't know what you're
actually supposed to do.
Andreas? Tim?
Regards,
--
Christopher Schmidt
MetaCarta
From john.pulles at geodan.nl Fri Apr 4 07:40:35 2008
From: john.pulles at geodan.nl (John Pulles)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] #879: Zoom Box Offset on Specific Map
Message-ID: <47F613B3.9000605@geodan.nl>
Hi list,
> The specific behavior here was unusual in that it:
> * Happened every time the page was loaded. (no 'reload and it goes
> away')
> * Was offset by a large amount (~200px, iirc)
>
> If anyone else is experiencing this problem -- that is, a specific page
> generates incorrect zoombox extents, more than 50px from the mouse
> position every time the map is loaded, could they comment to the bug?
A similar thing can be seen when using Internet Explorer to look at
http://aardbodem.nl/node/3: when dragging a zoom box with the mouse, it
will appear around 200 pixels to the left of the cursor.
I expect the reason lies in the theming of the site, but I don't know where to
correct it.
Regards,
John.
From crschmidt at metacarta.com Fri Apr 4 07:48:11 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Authenticating against a secured WMS server
under IIS
In-Reply-To: <32DFAB49E7503843809D10D473B98A1A77D1B0@mail01.TNC.ORG>
References: <32DFAB49E7503843809D10D473B98A1A77D05E@mail01.TNC.ORG>
<20080404021501.GB29886@metacarta.com>
<32DFAB49E7503843809D10D473B98A1A77D1B0@mail01.TNC.ORG>
Message-ID: <20080404114810.GA16265@metacarta.com>
On Thu, Apr 03, 2008 at 10:32:29PM -0400, Paul Angelino wrote:
> Thanks for your reply. We don't have the credentials of the end user
> that is logged into the web app, which is a good thing as you say, but
> at this point we really just need to impersonate the user to the WMS
> server based on a couple different authorization roles that apply. So
> we could pass credentials through the URL but our security standards
> won't allow us to do it in clear text.
There's no reason that credentials as I stated need to be in clear text:
the browser uses this username and password as auth for the request, it
doesn't send them as part of the URL to the server. But it probably
doesn't solve your problem anyway.
If your application server has the ability to get to all the information
(as in: it has superuser access) then you might be best off simply
proxying the IIS requests through something on the Apache server. Apache
server uses the superuser credentials to access the IIS, download the
data, and must then enforce the security requirements of the remote
server.
> To answer your other questions, we do use Active Directory for
> authentication but we do not yet have single sign-on. Both the web
> application using OpenLayers and the WMS server use AD authentication,
> but they run on different web servers. In fact, the web app runs on
> Apache and the WMS server runs on IIS. The web app uses an Open LDAP
> interface to perform authentication and the IIS server uses the
> out-of-the box Windows AD authentication when you disable anonymous
> access to your web site.
I expect that what this means is:
* The Apache server is doing authentication using LDAP, not Active
Directory (with the AD server as an LDAP backend)
* What you actually want is:
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/523ae943-5e6a-4200-9103-9808baa00157.mspx?mfr=true
"""Unlike Basic authentication, Integrated Windows authentication does
not initially prompt for a user name and password. The current Windows
user information on the client is used for Integrated Windows
authentication."""
However, setting this up on both the IIS server and the Apache server
would probably be a lesson in active directory that you may not be
interested in:
http://www.onlamp.com/pub/a/onlamp/2003/09/11/kerberos.html
might be a starting point for understanding it and making that decision
on the Apache side.
Regards,
--
Christopher Schmidt
MetaCarta
From crschmidt at metacarta.com Fri Apr 4 07:54:32 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] #879: Zoom Box Offset on Specific Map
In-Reply-To: <47F613B3.9000605@geodan.nl>
References: <47F613B3.9000605@geodan.nl>
Message-ID: <20080404115431.GA16359@metacarta.com>
On Fri, Apr 04, 2008 at 01:40:35PM +0200, John Pulles wrote:
> Hi list,
>
> > The specific behavior here was unusual in that it:
> > * Happened every time the page was loaded. (no 'reload and it goes
> > away')
> > * Was offset by a large amount (~200px, iirc)
> >
> > If anyone else is experiencing this problem -- that is, a specific page
> > generates incorrect zoombox extents, more than 50px from the mouse
> > position every time the map is loaded, could they comment to the bug?
>
> A similar thing can be seen when using Internet Explorer to look at
> http://aardbodem.nl/node/3: when dragging a zoom box with the mouse, it
> will appear around 200 pixels to the left of the cursor.
>
> I expect the reason lies in the theming of the site, but I don't know where to
> correct it.
My guess is that it's related to:
style.css (line 401)
body.sidebar-left #center {
margin-left:-210px;
}
or possibly the corresponding margin-left of 210px on '#squeeze'.
Since you say about 200px, and I know that IE has... 'issues' with
margin calculatino. Is it just IE6, or does IE7 suffer similarly?
Regards,
--
Christopher Schmidt
MetaCarta
From david.fawcett at gmail.com Fri Apr 4 09:40:30 2008
From: david.fawcett at gmail.com (David Fawcett)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Proportional Symbol Mapping
In-Reply-To: <20080404105715.GC15153@metacarta.com>
References: <47F54687.6090801@sms.ed.ac.uk>
<5ec103de0804040148g6726c09ak822b3b7cd2ae36b7@mail.gmail.com>
<20080404105715.GC15153@metacarta.com>
Message-ID:
I can think of another option, but it is a fairly big change of course.
Instead of sending RSS to OpenLayers and building the vector features, you
could use MapServer to create a transparent WMS layer with your features in
it. That way, you could use LAYER SYMBOLSCALE to scale your symbols.
David.
On Fri, Apr 4, 2008 at 5:57 AM, Christopher Schmidt
wrote:
> On Fri, Apr 04, 2008 at 10:48:09AM +0200, Eric Lemoine wrote:
> > On Thu, Apr 3, 2008 at 11:05 PM, Bjorn Sandvik
> wrote:
> > > My question: Is there a way to keep the relative size of the symbols
> > > when the users zoom in/out?
> >
> > AFAICT there's no way to style features based on the current zoom level.
>
> I'm pretty sure that the StyleMap/Style/Rule system is designed exactly
> for that, but I have no idea how it's supposed to work.
>
> I would say "look at http://trac.openlayers.org/wiki/Styles", but I see
> that it's using Rules for styling, which I think was recently decided
> would be unsupported in OpenLayers 2.6, so I don't know what you're
> actually supposed to do.
>
> Andreas? Tim?
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080404/7ba7e171/attachment.html
From mpriour at kestrelcomputer.com Fri Apr 4 09:46:19 2008
From: mpriour at kestrelcomputer.com (mpriour)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Proportional Symbol Mapping
In-Reply-To: <47F54687.6090801@sms.ed.ac.uk>
References: <47F54687.6090801@sms.ed.ac.uk>
Message-ID: <16491535.post@talk.nabble.com>
Bjorn
The correct way to handle this is to attach an event handler to the endzoom
event.
This event should manage the size of the symbols so that they are
propotionally sized.
Choose the zoom level at which the symbol renders at the right proportion,
this will be your refernece zoom level. Then size the symbol propotionally
the ratio of resolution @ current zoom level / resolution @ reference zoom
level. Depending on the event firing order, you may also need to call
redraw() on your vector layer.
Matt
Bjorn Sandvik wrote:
>
> Hi,
>
> I'm currently testing the capabilities of doing thematic mapping with
> OpenLayers.
>
> This is a proportional symbol map based on GeoJSON encoded data:
> http://thematicmapping.org/experiments/openlayers_propsymb.htm
>
> My question: Is there a way to keep the relative size of the symbols
> when the users zoom in/out?
> (symbols should keep their size relative to the size of the countries).
>
> Bjorn
>
> http://blog.thematicmapping.org
>
>
>
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
--
View this message in context: http://www.nabble.com/Proportional-Symbol-Mapping-tp16484334p16491535.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
From mcwanek at fourddev.com Fri Apr 4 10:09:46 2008
From: mcwanek at fourddev.com (Matt J Cwanek)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Markers vs Features?
Message-ID: <20080404140946.GA10631@fourddev.com>
Hi:
We have an application framework that we've decided to port from Google
Maps 2 to OpenLayers, and so far it's been pretty painless. From the map
perspective, our application provides for real-time marker updates via
GPS devices, user-created markers w/custom icons, user-created vector
features (lines, areas, polys), custom maptile sets, etc.
Coming from the GMap2 world, I initially ported our code to work with the
OpenLayers.Marker class, where it had been previously using GMarkers. I
knew that I would be using Features to support the vector functionality,
but when I started looking at how to make certain user-created Markers
draggable (as we had before with GMap2), I started getting lost.
I guess my question is, coming from a Google Maps 2 world, it seems like
a GMarker is more like an OpenLayers.Marker except for being able to
drag it around, in which case it looks like I should use
OpenLayers.Features instead for everything. But then I'm getting
confused by the fact that a Feature attaches to a particular Layer, when
we intended to have multiple base layer options for the user to pick
from.
And finally, I don't understand why a Feature has it's own lonlat that
could be different from the one the Marker has....?
Can anybody help clear this up for me?
Thanks for your time.
Matt J Cwanek
FourD Development, Inc.
mcwanek@fourddev.com
From xin at zenpow.com Fri Apr 4 11:32:32 2008
From: xin at zenpow.com (Xin)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] FramedCloud popup autosizing with images
Message-ID:
Is it possible to have FramedCloud popups autosize with images without
specifying img width/height?
The images I am using do not all have the same size. It would be great if it
did autosize.
If not, is there a work around? Or any advice on how to change the existing
code would also be appreciated.
Thanks,
Xin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080404/15cace51/attachment.html
From crschmidt at metacarta.com Fri Apr 4 11:41:17 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Markers vs Features?
In-Reply-To: <20080404140946.GA10631@fourddev.com>
References: <20080404140946.GA10631@fourddev.com>
Message-ID: <20080404154116.GB19148@metacarta.com>
On Fri, Apr 04, 2008 at 10:09:46AM -0400, Matt J Cwanek wrote:
>
> Hi:
>
> We have an application framework that we've decided to port from Google
> Maps 2 to OpenLayers, and so far it's been pretty painless. From the map
> perspective, our application provides for real-time marker updates via
> GPS devices, user-created markers w/custom icons, user-created vector
> features (lines, areas, polys), custom maptile sets, etc.
Cool.
> Coming from the GMap2 world, I initially ported our code to work with the
> OpenLayers.Marker class, where it had been previously using GMarkers. I
> knew that I would be using Features to support the vector functionality,
> but when I started looking at how to make certain user-created Markers
> draggable (as we had before with GMap2), I started getting lost.
Is there a reason that you treat Markers (icons) and vectors
(points/line/polys) differently?
If we were to look at The Way Things Should Probably be, I would say
that Markers are only there as a historical thing. "Everything should be
using Vectors" -- *including* things that you want graphical images for.
As an example of that:
http://openlayers.org/dev/examples/sundials.html
These are vector features, with an external graphic styling object.
(Style properties are, specifically:
{"graphicOpacity":1,
"externalGraphic":"http://maps.google.com/mapfiles/kml/shapes/sunny.png",
"graphicXOffset":-19.2,
"graphicYOffset":-18.2,
"graphicWidth":38.4,
"graphicHeight":38.4,
"id":"sn_sunny_copy68",
"strokeLinecap":"round",
"strokeOpacity":1,
"fillOpacity":1,
"pointRadius":0}
)
These markers are easily draggable using the existing
OpenLayers.Feature.Vector dragging tools.
> I guess my question is, coming from a Google Maps 2 world, it seems like
> a GMarker is more like an OpenLayers.Marker except for being able to
> drag it around, in which case it looks like I should use
> OpenLayers.Features instead for everything.
Note that OpenLayers.Feature in and of itself doesn't get you
draggability: just OpenLayers.Feature.*Vector* does. But yes.
> But then I'm getting
> confused by the fact that a Feature attaches to a particular Layer, when
> we intended to have multiple base layer options for the user to pick
> from.
This is another GMaps misconception: In GMaps, all overlays are on a
single layer. In OpenLayers, the "layer" you attach features to is
*just* for the features. You will have multiple base layers (Google, Not
Google, Map tiles, whatever) and an *overlay* layer (which can be turned
on and off).
In general, you can even have, for example, all your lines on one layer,
all your points on another.
At the current time, only one layer can be 'selectable' (and therefore
draggable) at a time -- therefore there are technical limitations
blocking this, but that's at least the idea.
> And finally, I don't understand why a Feature has it's own lonlat that
> could be different from the one the Marker has....?
It shouldn't ever be different. Just two different levels of
abstraction: Feature has a lonlat, and you shouldn't need to think about
a marker at that point.
Hope this helps,
--
Christopher Schmidt
MetaCarta
From crschmidt at metacarta.com Fri Apr 4 11:59:38 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] FramedCloud popup autosizing with images
In-Reply-To:
References:
Message-ID: <20080404155938.GD19148@metacarta.com>
On Fri, Apr 04, 2008 at 04:32:32PM +0100, Xin wrote:
> Is it possible to have FramedCloud popups autosize with images without
> specifying img width/height?
No. A ticket is filed for 2.7: http://trac.openlayers.org/ticket/1469
This should have enough description to work with, I believe.
> The images I am using do not all have the same size. It would be great if it
> did autosize.
Sure.
> If not, is there a work around? Or any advice on how to change the existing
> code would also be appreciated.
Ticket above should help.
Regards,
--
Christopher Schmidt
MetaCarta
From euzuro at gmail.com Fri Apr 4 12:08:20 2008
From: euzuro at gmail.com (Erik Uzureau)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] FramedCloud popup autosizing with images
In-Reply-To: <20080404155938.GD19148@metacarta.com>
References:
<20080404155938.GD19148@metacarta.com>
Message-ID: <6ae3fb590804040908v7fa5f245h9de2e11c6e1f18f0@mail.gmail.com>
also note that if you preload the images, it should work.
this may or may not be easy to do, but if you look at the
examples/popupMatrix.html example,
you will see that the four images it uses are preloaded (offscreen) in
the body of the html
erik
On Fri, Apr 4, 2008 at 11:59 AM, Christopher Schmidt
wrote:
> On Fri, Apr 04, 2008 at 04:32:32PM +0100, Xin wrote:
> > Is it possible to have FramedCloud popups autosize with images without
> > specifying img width/height?
>
> No. A ticket is filed for 2.7: http://trac.openlayers.org/ticket/1469
>
> This should have enough description to work with, I believe.
>
> > The images I am using do not all have the same size. It would be great if it
> > did autosize.
>
> Sure.
>
> > If not, is there a work around? Or any advice on how to change the existing
> > code would also be appreciated.
>
> Ticket above should help.
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
From mcwanek at fourddev.com Fri Apr 4 12:38:47 2008
From: mcwanek at fourddev.com (Matt J Cwanek)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Markers vs Features?
In-Reply-To: <20080404154116.GB19148@metacarta.com>
References: <20080404140946.GA10631@fourddev.com>
<20080404154116.GB19148@metacarta.com>
Message-ID: <20080404163847.GB10631@fourddev.com>
On 04/04/08 11:41 -0400, Christopher Schmidt wrote:
> > Coming from the GMap2 world, I initially ported our code to work with the
> > OpenLayers.Marker class, where it had been previously using GMarkers. I
> > knew that I would be using Features to support the vector functionality,
> > but when I started looking at how to make certain user-created Markers
> > draggable (as we had before with GMap2), I started getting lost.
>
> Is there a reason that you treat Markers (icons) and vectors
> (points/line/polys) differently?
Historical, really. We had GMarkers working way before we needed lines and
areas in GMap2. But there's no reason now to treat them differently.
> If we were to look at The Way Things Should Probably be, I would say
> that Markers are only there as a historical thing. "Everything should be
> using Vectors" -- *including* things that you want graphical images for.
Ok, that's kinda the feeling I was getting looking at the code.
> Note that OpenLayers.Feature in and of itself doesn't get you
> draggability: just OpenLayers.Feature.*Vector* does. But yes.
Ah, right. Thanks for the tip.
> > But then I'm getting
> > confused by the fact that a Feature attaches to a particular Layer, when
> > we intended to have multiple base layer options for the user to pick
> > from.
>
> This is another GMaps misconception: In GMaps, all overlays are on a
> single layer. In OpenLayers, the "layer" you attach features to is
> *just* for the features. You will have multiple base layers (Google, Not
> Google, Map tiles, whatever) and an *overlay* layer (which can be turned
> on and off).
Good, I'd already started heading down that road.
> In general, you can even have, for example, all your lines on one layer,
> all your points on another.
>
> At the current time, only one layer can be 'selectable' (and therefore
> draggable) at a time -- therefore there are technical limitations
> blocking this, but that's at least the idea.
Well, then let me ask this. All our markers (draggable or not) currently
can be clicked to open a GMap2 infowindow for details about that marker.
If I split the markers into draggable and non-draggable, and create a
separate layer for each, does that mean only the selected layer will
receive click events?
> > And finally, I don't understand why a Feature has it's own lonlat that
> > could be different from the one the Marker has....?
>
> It shouldn't ever be different. Just two different levels of
> abstraction: Feature has a lonlat, and you shouldn't need to think about
> a marker at that point.
Ok, so it sounds like what I should do is use a Vector feature w/a Point
geometry and appropriate styling, instead of using a Marker or a base
Feature w/a Marker.
> Hope this helps,
Yes, this is a huge help, thanks.
From crschmidt at metacarta.com Fri Apr 4 13:59:00 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Markers vs Features?
In-Reply-To: <20080404163847.GB10631@fourddev.com>
References: <20080404140946.GA10631@fourddev.com>
<20080404154116.GB19148@metacarta.com>
<20080404163847.GB10631@fourddev.com>
Message-ID: <20080404175859.GD22112@metacarta.com>
On Fri, Apr 04, 2008 at 12:38:47PM -0400, Matt J Cwanek wrote:
> On 04/04/08 11:41 -0400, Christopher Schmidt wrote:
> > In general, you can even have, for example, all your lines on one layer,
> > all your points on another.
> >
> > At the current time, only one layer can be 'selectable' (and therefore
> > draggable) at a time -- therefore there are technical limitations
> > blocking this, but that's at least the idea.
>
> Well, then let me ask this. All our markers (draggable or not) currently
> can be clicked to open a GMap2 infowindow for details about that marker.
>
> If I split the markers into draggable and non-draggable, and create a
> separate layer for each, does that mean only the selected layer will
> receive click events?
Yeah, that is the current state.
You can have two different SelectFeature controls attached to the map;
the problem them is switching between them becomes a deliberate user
action.
You can also collect click events explicitly with a Click Handler, and
on a click, loop through your non-active select layer, and test for
Geometry intersection. This would essentially mimic the way that I would
advise building a more advanced SelectFeature that supported selecting
features from multiple layers.
> Ok, so it sounds like what I should do is use a Vector feature w/a Point
> geometry and appropriate styling, instead of using a Marker or a base
> Feature w/a Marker.
Yep, that's what I would recommend.
> > Hope this helps,
>
> Yes, this is a huge help, thanks.
Cool.
Regards,
--
Christopher Schmidt
MetaCarta
From research at leviathanchile.org Fri Apr 4 14:10:25 2008
From: research at leviathanchile.org (G. Paolo Sanino V.)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Controls not working
In-Reply-To: <20080402113852.GA10049@metacarta.com>
References: <200804012004.13618.research@leviathanchile.org>
<20080402084756.411dcff7@kirishima.wrk.lsn.camptocamp.com>
<20080402113852.GA10049@metacarta.com>
Message-ID: <200804041410.27312.research@leviathanchile.org>
Hi, thanks so much!!!
After Eric, Frederic and Christopher 's support, the map is looking a lot
better!!! Thank you all for this great work.
With http://openlayers.org/api/2.6-rc1/OpenLayers.js
the ScaleLine and OverviewMap controls, are still not working; neither with
http://dev.openlayers.org/nightly/OpenLayers.js
I am using Firefox (with FireFTP) and Konqueror as browsers, and Kompozer for
html editing, all under OpenSuSE 10.3's Linux distro. Under XP I see the same
symptoms.
Maybe I should wait until 2.6... However MousePosition and
addLayers/LayerSwitcher are doing great. Also, the markers are not where they
should be (in land when they should be on the water) but after zooming in
they are just right.
It is a lot better. You can see the changes on:
http://www.cmmrleviathan.org/ciencia_GIS.htm
Regards,
GPSanino
On Wednesday 02 April 2008 07:38:53 am Christopher Schmidt wrote:
> On Wed, Apr 02, 2008 at 08:47:56AM +0200, Fr?d?ric Junod wrote:
> > Hi,
> >
> > You can't use the ScaleLine control because you're using and old version
> > of OpenLayers (http://www.openlayers.org/api/OpenLayers.js version 2.5).
> > The ScaleLine control was added after the 2.5 release.
> >
> > You have to use a more recent version of OpenLayers, the new stable
> > release is not ready yet but you can use the release candidate:
> > http://openlayers.org/api/2.6-rc1/OpenLayers.js
> > But this is not the final code !! When the final 2.6 will be released
> > this url will become obsolete ...
>
> Nothing in /api/ Ever goes away: You can continue to use 2.6-rc1 for all
> time, but it would not be wise to. However, it's only obsolete in the
> same way that /api/2.4/ is: You can safely use this in your application,
> you should just be aware that as soon as 2.6 is released, it will make
> sense for you to switch.
>
> Regards,
From crschmidt at metacarta.com Fri Apr 4 14:16:43 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Controls not working
In-Reply-To: <200804041410.27312.research@leviathanchile.org>
References: <200804012004.13618.research@leviathanchile.org>
<20080402084756.411dcff7@kirishima.wrk.lsn.camptocamp.com>
<20080402113852.GA10049@metacarta.com>
<200804041410.27312.research@leviathanchile.org>
Message-ID: <20080404181643.GA22334@metacarta.com>
On Fri, Apr 04, 2008 at 02:10:25PM -0400, G. Paolo Sanino V. wrote:
> Hi, thanks so much!!!
>
> After Eric, Frederic and Christopher 's support, the map is looking a lot
> better!!! Thank you all for this great work.
>
> With http://openlayers.org/api/2.6-rc1/OpenLayers.js
> the ScaleLine and OverviewMap controls, are still not working; neither with
> http://dev.openlayers.org/nightly/OpenLayers.js
>
> I am using Firefox (with FireFTP) and Konqueror as browsers, and Kompozer for
> html editing, all under OpenSuSE 10.3's Linux distro. Under XP I see the same
> symptoms.
The Overview Map is causing you problems. (I don't really know why.) If
you drop the OverviewMap out, the ScaleLine should work.
> Maybe I should wait until 2.6...
That won't help you here.
> However MousePosition and
> addLayers/LayerSwitcher are doing great. Also, the markers are not where they
> should be (in land when they should be on the water) but after zooming in
> they are just right.
That probably means that your iconOffset isn't actually what you mean
for it to be. As far as I can tell, the anchor point of the markers
isn't changing, so I think you're just suffering from an iconOffset that
isn't actually what you mean.
Regards,
--
Christopher Schmidt
MetaCarta
From xin at zenpow.com Fri Apr 4 14:55:19 2008
From: xin at zenpow.com (Xin)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] FramedCloud popup autosizing with images
In-Reply-To: <6ae3fb590804040908v7fa5f245h9de2e11c6e1f18f0@mail.gmail.com>
References:
<20080404155938.GD19148@metacarta.com>
<6ae3fb590804040908v7fa5f245h9de2e11c6e1f18f0@mail.gmail.com>
Message-ID:
Thanks Chaps.
Email preloading works like a dream. It's pretty easy to do for what I'm
doing.
On 04/04/2008, Erik Uzureau wrote:
>
> also note that if you preload the images, it should work.
>
> this may or may not be easy to do, but if you look at the
> examples/popupMatrix.html example,
> you will see that the four images it uses are preloaded (offscreen) in
> the body of the html
>
> erik
>
>
>
> On Fri, Apr 4, 2008 at 11:59 AM, Christopher Schmidt
> wrote:
> > On Fri, Apr 04, 2008 at 04:32:32PM +0100, Xin wrote:
> > > Is it possible to have FramedCloud popups autosize with images without
> > > specifying img width/height?
> >
> > No. A ticket is filed for 2.7: http://trac.openlayers.org/ticket/1469
> >
> > This should have enough description to work with, I believe.
> >
> > > The images I am using do not all have the same size. It would be great
> if it
> > > did autosize.
> >
> > Sure.
> >
> > > If not, is there a work around? Or any advice on how to change the
> existing
> > > code would also be appreciated.
> >
> > Ticket above should help.
> >
> > Regards,
> > --
> > Christopher Schmidt
> > MetaCarta
>
> > _______________________________________________
> > Users mailing list
> > Users@openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080404/50393945/attachment.html
From B.Sandvik at sms.ed.ac.uk Sat Apr 5 12:01:32 2008
From: B.Sandvik at sms.ed.ac.uk (Bjorn Sandvik)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Proportional Symbol Mapping
In-Reply-To: <16491535.post@talk.nabble.com>
References: <47F54687.6090801@sms.ed.ac.uk> <16491535.post@talk.nabble.com>
Message-ID: <47F7A25C.2010408@sms.ed.ac.uk>
Hi Matt,
I'm currently implementing your suggestions. I'm able to size the
symbols as a function of the initial zoom level, but I can't figure out
how to attach an event handler to the endzoom event. How can I add an
event handler which makes a function call?
http://localhost/thematicmapping/experiments/openlayers/propsymbols.html
(the hover effect still needs some improvements).
Bjorn
http://blog.thematicmapping.org
mpriour wrote:
> Bjorn
> The correct way to handle this is to attach an event handler to the endzoom
> event.
> This event should manage the size of the symbols so that they are
> propotionally sized.
> Choose the zoom level at which the symbol renders at the right proportion,
> this will be your refernece zoom level. Then size the symbol propotionally
> the ratio of resolution @ current zoom level / resolution @ reference zoom
> level. Depending on the event firing order, you may also need to call
> redraw() on your vector layer.
> Matt
>
> Bjorn Sandvik wrote:
>
>> Hi,
>>
>> I'm currently testing the capabilities of doing thematic mapping with
>> OpenLayers.
>>
>> This is a proportional symbol map based on GeoJSON encoded data:
>> http://thematicmapping.org/experiments/openlayers_propsymb.htm
>>
>> My question: Is there a way to keep the relative size of the symbols
>> when the users zoom in/out?
>> (symbols should keep their size relative to the size of the countries).
>>
>> Bjorn
>>
>> http://blog.thematicmapping.org
>>
>>
>>
>>
>> --
>> The University of Edinburgh is a charitable body, registered in
>> Scotland, with registration number SC005336.
>>
>> _______________________________________________
>> Users mailing list
>> Users@openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>>
>
>
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
From arnd.wippermann at web.de Sat Apr 5 13:13:31 2008
From: arnd.wippermann at web.de (Arnd Wippermann)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] How to change style['select'] in OL 2.6
Message-ID:
Hi,
First, a great compliment to all the developers of OL. And best, only some
easy changes needed to update own applications from 2.5 to 2.6.
But some behaviour I'm used to in 2.5, I could not solve for 2.6.
In OL 2.5 I do this to draw red features and draw select features in yellow:
OpenLayers.Feature.Vector.style['select']['fillColor'] = 'yellow';
OpenLayers.Feature.Vector.style['select']['strokeColor'] = 'yellow';
var layer_style = OpenLayers.Util.extend({},
OpenLayers.Feature.Vector.style['default']);
style_red = OpenLayers.Util.extend({}, layer_style);
style_red.strokeColor = "red";
style_red.fillColor = "red";
vector = new OpenLayers.Layer.Vector("Editable Vectors", {style:
style_red});
With OL 2.6 I have no luck. The features will drawn in red, but the selected
features are also in red.
How can I change the default style for selected features in OL 2.6?
With OL 2.6 the SelectFeatureControl allows to edit the vertices. I would
like the previous behaviour.
Is there a way to disable the edit function for the SelectFeatureControl?
And last. Also a compliment for solving the problem with the flickering of
the Google layers, but is there a reason that OL sticks to only 19
zoomlevels for the Google layer? Google have 22 zoomlevels and especially
for where I come from (Wuppertal), it's possible to get images for
zoomlevels > 19. I use this patch to get all levels:
OpenLayers.Layer.Google.prototype.RESOLUTIONS =
[1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.0219726562
5,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,0.000686
6455078125,0.00034332275390625,0.000171661376953125,0.0000858306884765625,0.
0000429153442382812,0.0000214576721191406,0.0000107288360595703,0.0000053644
1802978516,0.00000268220901489258,0.00000134110450744629,6.70552253723145e-7
,3.35276126861572e-7];
OpenLayers.Layer.Google.prototype.MAX_ZOOM_LEVEL = 22;
Mit freundlichen Gr?ssen
Arnd Wippermann
http://gis.ibbeck.de/ginfo/
From B.Sandvik at sms.ed.ac.uk Sat Apr 5 14:27:50 2008
From: B.Sandvik at sms.ed.ac.uk (Bjorn Sandvik)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Proportional Symbol Mapping
In-Reply-To:
References:
Message-ID: <47F7C4A6.4000708@sms.ed.ac.uk>
Hi Arnd,
Thank you for sharing this solution!
It seems to work on:
http://localhost/thematicmapping/experiments/openlayers/propsymbols2.html
Do you think that this solution will have some performance issues due to
more "complex" polygons?
The good thing is that no event handling is needed when the user zoom
the map.
Bjorn
Arnd Wippermann wrote:
> Hi Bjorn,
>
> Looking with interest at your map, I have a workaround. You can draw a
> regular polygon with enough corners to look like a circle.
>
> I have taken your code to test it. It seems to do what you want. It works
> for OL 2.5 and 2.6, but with 2.6 the hover is broken.
>
>
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
>
> Open Layers Example
>
>
>
>
>
>
>
>
>
>
>
>
>
> -----Urspr?ngliche Nachricht-----
> Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im
> Auftrag von Bjorn Sandvik
> Gesendet: Donnerstag, 3. April 2008 23:05
> An: users@openlayers.org
> Betreff: [OpenLayers-Users] Proportional Symbol Mapping
>
> Hi,
>
> I'm currently testing the capabilities of doing thematic mapping with
> OpenLayers.
>
> This is a proportional symbol map based on GeoJSON encoded data:
> http://thematicmapping.org/experiments/openlayers_propsymb.htm
>
> My question: Is there a way to keep the relative size of the symbols when
> the users zoom in/out?
> (symbols should keep their size relative to the size of the countries).
>
> Bjorn
>
> http://blog.thematicmapping.org
>
>
>
>
> --
> The University of Edinburgh is a charitable body, registered in Scotland,
> with registration number SC005336.
>
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
>
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
From B.Sandvik at sms.ed.ac.uk Sat Apr 5 15:01:37 2008
From: B.Sandvik at sms.ed.ac.uk (Bjorn Sandvik)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Proportional Symbol Mapping
In-Reply-To:
References: <47F54687.6090801@sms.ed.ac.uk> <5ec103de0804040148g6726c09ak822b3b7cd2ae36b7@mail.gmail.com> <20080404105715.GC15153@metacarta.com>
Message-ID: <47F7CC91.3090004@sms.ed.ac.uk>
Hi David,
I will consider thematic mapping with WMS at a later stage.
"European Interactive Atlas Explorer" is a good example:
http://karlinapp.ethz.ch/wms_client/
The disadvantage is lack of interactivity on the client.
Bjorn
http://blog.thematicmapping.org
David Fawcett wrote:
> I can think of another option, but it is a fairly big change of course.
>
> Instead of sending RSS to OpenLayers and building the vector features,
> you could use MapServer to create a transparent WMS layer with your
> features in it. That way, you could use LAYER SYMBOLSCALE to scale
> your symbols.
>
> David.
>
> On Fri, Apr 4, 2008 at 5:57 AM, Christopher Schmidt
> > wrote:
>
> On Fri, Apr 04, 2008 at 10:48:09AM +0200, Eric Lemoine wrote:
> > On Thu, Apr 3, 2008 at 11:05 PM, Bjorn Sandvik
> > wrote:
> > > My question: Is there a way to keep the relative size of the
> symbols
> > > when the users zoom in/out?
> >
> > AFAICT there's no way to style features based on the current
> zoom level.
>
> I'm pretty sure that the StyleMap/Style/Rule system is designed
> exactly
> for that, but I have no idea how it's supposed to work.
>
> I would say "look at http://trac.openlayers.org/wiki/Styles", but
> I see
> that it's using Rules for styling, which I think was recently decided
> would be unsupported in OpenLayers 2.6, so I don't know what you're
> actually supposed to do.
>
> Andreas? Tim?
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
From B.Sandvik at sms.ed.ac.uk Sat Apr 5 16:51:09 2008
From: B.Sandvik at sms.ed.ac.uk (Bjorn Sandvik)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Proportional Symbol Mapping
In-Reply-To: <47F7C4A6.4000708@sms.ed.ac.uk>
References: <47F7C4A6.4000708@sms.ed.ac.uk>
Message-ID: <47F7E63D.20807@sms.ed.ac.uk>
Correct url:
http://thematicmapping.org/experiments/openlayers/propsymbols2.html
Bjorn
Bjorn Sandvik wrote:
> Hi Arnd,
>
> Thank you for sharing this solution!
> It seems to work on:
> http://localhost/thematicmapping/experiments/openlayers/propsymbols2.html
>
> Do you think that this solution will have some performance issues due to
> more "complex" polygons?
> The good thing is that no event handling is needed when the user zoom
> the map.
>
> Bjorn
>
> Arnd Wippermann wrote:
>
>> Hi Bjorn,
>>
>> Looking with interest at your map, I have a workaround. You can draw a
>> regular polygon with enough corners to look like a circle.
>>
>> I have taken your code to test it. It seems to do what you want. It works
>> for OL 2.5 and 2.6, but with 2.6 the hover is broken.
>>
>>
>> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>
>>
>> Open Layers Example
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> -----Urspr?ngliche Nachricht-----
>> Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im
>> Auftrag von Bjorn Sandvik
>> Gesendet: Donnerstag, 3. April 2008 23:05
>> An: users@openlayers.org
>> Betreff: [OpenLayers-Users] Proportional Symbol Mapping
>>
>> Hi,
>>
>> I'm currently testing the capabilities of doing thematic mapping with
>> OpenLayers.
>>
>> This is a proportional symbol map based on GeoJSON encoded data:
>> http://thematicmapping.org/experiments/openlayers_propsymb.htm
>>
>> My question: Is there a way to keep the relative size of the symbols when
>> the users zoom in/out?
>> (symbols should keep their size relative to the size of the countries).
>>
>> Bjorn
>>
>> http://blog.thematicmapping.org
>>
>>
>>
>>
>> --
>> The University of Edinburgh is a charitable body, registered in Scotland,
>> with registration number SC005336.
>>
>> _______________________________________________
>> Users mailing list
>> Users@openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>>
>>
>
>
>
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
From B.Sandvik at sms.ed.ac.uk Sat Apr 5 16:52:29 2008
From: B.Sandvik at sms.ed.ac.uk (Bjorn Sandvik)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Proportional Symbol Mapping
In-Reply-To: <47F7A25C.2010408@sms.ed.ac.uk>
References: <47F54687.6090801@sms.ed.ac.uk> <16491535.post@talk.nabble.com>
<47F7A25C.2010408@sms.ed.ac.uk>
Message-ID: <47F7E68D.2080209@sms.ed.ac.uk>
Correct url:
http://thematicmapping.org/experiments/openlayers/propsymbols.html
(Event handler not working)
Bjorn
Bjorn Sandvik wrote:
> Hi Matt,
>
> I'm currently implementing your suggestions. I'm able to size the
> symbols as a function of the initial zoom level, but I can't figure out
> how to attach an event handler to the endzoom event. How can I add an
> event handler which makes a function call?
>
> http://localhost/thematicmapping/experiments/openlayers/propsymbols.html
> (the hover effect still needs some improvements).
>
> Bjorn
> http://blog.thematicmapping.org
>
>
> mpriour wrote:
>
>> Bjorn
>> The correct way to handle this is to attach an event handler to the endzoom
>> event.
>> This event should manage the size of the symbols so that they are
>> propotionally sized.
>> Choose the zoom level at which the symbol renders at the right proportion,
>> this will be your refernece zoom level. Then size the symbol propotionally
>> the ratio of resolution @ current zoom level / resolution @ reference zoom
>> level. Depending on the event firing order, you may also need to call
>> redraw() on your vector layer.
>> Matt
>>
>> Bjorn Sandvik wrote:
>>
>>
>>> Hi,
>>>
>>> I'm currently testing the capabilities of doing thematic mapping with
>>> OpenLayers.
>>>
>>> This is a proportional symbol map based on GeoJSON encoded data:
>>> http://thematicmapping.org/experiments/openlayers_propsymb.htm
>>>
>>> My question: Is there a way to keep the relative size of the symbols
>>> when the users zoom in/out?
>>> (symbols should keep their size relative to the size of the countries).
>>>
>>> Bjorn
>>>
>>> http://blog.thematicmapping.org
>>>
>>>
>>>
>>>
>>> --
>>> The University of Edinburgh is a charitable body, registered in
>>> Scotland, with registration number SC005336.
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users@openlayers.org
>>> http://openlayers.org/mailman/listinfo/users
>>>
>>>
>>>
>>>
>>
>>
>
>
>
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
From arnd.wippermann at web.de Sat Apr 5 17:16:36 2008
From: arnd.wippermann at web.de (Arnd Wippermann)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Proportional Symbol Mapping
In-Reply-To: <47F7C4A6.4000708@sms.ed.ac.uk>
Message-ID:
Hi Bjorn,
It seems that the 200 regular polygons behave as the 200 circles. I have
also thought, that the complex polygons would slow down the application. I
think up to 500 features the performance will be ok.
You can also think about WFS instead of WMS.
http://openlayers.org/dev/examples/wfs-reprojection.html
Mit freundlichen Gr?ssen
Arnd Wippermann
http://gis.ibbeck.de/ginfo/
-----Urspr?ngliche Nachricht-----
Von: B.Sandvik@sms.ed.ac.uk [mailto:B.Sandvik@sms.ed.ac.uk]
Gesendet: Samstag, 5. April 2008 20:28
An: users@openlayers.org
Cc: Arnd Wippermann
Betreff: Re: AW: [OpenLayers-Users] Proportional Symbol Mapping
Hi Arnd,
Thank you for sharing this solution!
It seems to work on:
http://localhost/thematicmapping/experiments/openlayers/propsymbols2.html
Do you think that this solution will have some performance issues due to
more "complex" polygons?
The good thing is that no event handling is needed when the user zoom the
map.
Bjorn
Arnd Wippermann wrote:
> Hi Bjorn,
>
> Looking with interest at your map, I have a workaround. You can draw a
> regular polygon with enough corners to look like a circle.
>
> I have taken your code to test it. It seems to do what you want. It
> works for OL 2.5 and 2.6, but with 2.6 the hover is broken.
>
>
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
>
> Open Layers Example
>
>
>
>
>
>
>
>
>
>
>
>
>
> -----Urspr?ngliche Nachricht-----
> Von: users-bounces@openlayers.org
> [mailto:users-bounces@openlayers.org] Im Auftrag von Bjorn Sandvik
> Gesendet: Donnerstag, 3. April 2008 23:05
> An: users@openlayers.org
> Betreff: [OpenLayers-Users] Proportional Symbol Mapping
>
> Hi,
>
> I'm currently testing the capabilities of doing thematic mapping with
> OpenLayers.
>
> This is a proportional symbol map based on GeoJSON encoded data:
> http://thematicmapping.org/experiments/openlayers_propsymb.htm
>
> My question: Is there a way to keep the relative size of the symbols
> when the users zoom in/out?
> (symbols should keep their size relative to the size of the countries).
>
> Bjorn
>
> http://blog.thematicmapping.org
>
>
>
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
>
--
The University of Edinburgh is a charitable body, registered in Scotland,
with registration number SC005336.
From andreas.hocevar at gmail.com Sun Apr 6 13:24:40 2008
From: andreas.hocevar at gmail.com (Andreas Hocevar)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Proportional Symbol Mapping
In-Reply-To: <47F54687.6090801@sms.ed.ac.uk>
References: <47F54687.6090801@sms.ed.ac.uk>
Message-ID: <47F90758.1040001@gmail.com>
Bjorn,
your requirement is covered by the new OpenLayers.StyleMap.
First of all, have a look at the styles-context example
(http://www.openlayers.org/dev/examples/styles-context.html). The second
example there (the points in the southern hemisphere) are created with
an advanced template. The same can be done for your use case.
If I take your original code for the calculation of the size:
feature.style.pointRadius = 3 + (pop * (40 / 1312978855));
feature.style.fillColor = feature.attributes['colour'];
I can create the following template:
var context = {
getSize: function(feature) {
return feature.attributes["population"] * someFactor * map.getScale();
},
getColour: function(feature) {
return feature.attributes["colour"];
}
};
var template = {
fillOpacity: 0.9
pointRadius: "${getSize}", // using context.getSize(feature)
fillColor: "${getColour}" // using context.getColour(feature)
};
var style = new OpenLayers.Style(template, {context: context});
vectors = new OpenLayers.Layer.Vector("Vector Layer", {
styleMap: new OpenLayers.StyleMap(style)});
You only have to find an algorithm to derive your pointRadius from
(using map.getScale() or map.getResolution() and someFactor).
Also, there is no need to set any feature styles in the onload method.
You're all set with the above definition of the styleMap in the
constructor for your vector layer.
Regards,
Andreas.
Bjorn Sandvik wrote:
> My question: Is there a way to keep the relative size of the symbols
> when the users zoom in/out?
> (symbols should keep their size relative to the size of the countries).
>
From andreas.hocevar at gmail.com Sun Apr 6 13:28:17 2008
From: andreas.hocevar at gmail.com (Andreas Hocevar)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Proportional Symbol Mapping
In-Reply-To: <20080404105715.GC15153@metacarta.com>
References: <47F54687.6090801@sms.ed.ac.uk> <5ec103de0804040148g6726c09ak822b3b7cd2ae36b7@mail.gmail.com>
<20080404105715.GC15153@metacarta.com>
Message-ID: <47F90831.6070006@gmail.com>
Christopher Schmidt wrote:
> On Fri, Apr 04, 2008 at 10:48:09AM +0200, Eric Lemoine wrote:
>
>> On Thu, Apr 3, 2008 at 11:05 PM, Bjorn Sandvik wrote:
>>
>>> My question: Is there a way to keep the relative size of the symbols
>>> when the users zoom in/out?
>>>
>> AFAICT there's no way to style features based on the current zoom level.
>>
>
> I'm pretty sure that the StyleMap/Style/Rule system is designed exactly
> for that, but I have no idea how it's supposed to work.
>
You're right. The solution does not even involve rules.
> I would say "look at http://trac.openlayers.org/wiki/Styles", but I see
> that it's using Rules for styling, which I think was recently decided
> would be unsupported in OpenLayers 2.6, so I don't know what you're
> actually supposed to do.
>
Well, the wiki page will have to be changed once it is decided how to
continue with the rules/filters issue.
> Andreas? Tim?
>
The solution is in the styles-context.html example. I already posted a
detailled answer as reply to another posting in this thread.
Regards,
Andreas.
From andreas.hocevar at gmail.com Sun Apr 6 13:37:13 2008
From: andreas.hocevar at gmail.com (Andreas Hocevar)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] How to change style['select'] in OL 2.6
In-Reply-To:
References:
Message-ID: <47F90A49.5050905@gmail.com>
Arnd Wippermann wrote:
> Hi,
>
> First, a great compliment to all the developers of OL. And best, only some
> easy changes needed to update own applications from 2.5 to 2.6.
>
> But some behaviour I'm used to in 2.5, I could not solve for 2.6.
>
> In OL 2.5 I do this to draw red features and draw select features in yellow:
>
> OpenLayers.Feature.Vector.style['select']['fillColor'] = 'yellow';
> OpenLayers.Feature.Vector.style['select']['strokeColor'] = 'yellow';
>
> var layer_style = OpenLayers.Util.extend({},
> OpenLayers.Feature.Vector.style['default']);
>
> style_red = OpenLayers.Util.extend({}, layer_style);
> style_red.strokeColor = "red";
> style_red.fillColor = "red";
>
> vector = new OpenLayers.Layer.Vector("Editable Vectors", {style:
> style_red});
>
>
> With OL 2.6 I have no luck. The features will drawn in red, but the selected
> features are also in red.
>
> How can I change the default style for selected features in OL 2.6?
>
The simplest way would be
var selectStyle = OpenLayers.Util.applyDefaults({
fillColor: "yellow",
strokeColor: "yellow"}, OpenLayers.Feature.Vector.style["select"]);
var selectFeatureControl = OpenLayers.Control.SelectFeature(yourLayer, {
selectStyle: selectStyle});
Regards,
Andreas.
From eric.c2c at gmail.com Sun Apr 6 15:44:18 2008
From: eric.c2c at gmail.com (Eric Lemoine)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Proportional Symbol Mapping
In-Reply-To: <47F90758.1040001@gmail.com>
References: <47F54687.6090801@sms.ed.ac.uk> <47F90758.1040001@gmail.com>
Message-ID: <5ec103de0804061244v72e9e2aeh78c2e32300a89cb8@mail.gmail.com>
On Sun, Apr 6, 2008 at 7:24 PM, Andreas Hocevar
wrote:
> Bjorn,
>
> your requirement is covered by the new OpenLayers.StyleMap.
>
> First of all, have a look at the styles-context example
> (http://www.openlayers.org/dev/examples/styles-context.html). The second
> example there (the points in the southern hemisphere) are created with
> an advanced template. The same can be done for your use case.
>
> If I take your original code for the calculation of the size:
>
> feature.style.pointRadius = 3 + (pop * (40 / 1312978855));
>
> feature.style.fillColor = feature.attributes['colour'];
>
> I can create the following template:
>
> var context = {
> getSize: function(feature) {
> return feature.attributes["population"] * someFactor * map.getScale();
> },
> getColour: function(feature) {
> return feature.attributes["colour"];
> }
> };
> var template = {
> fillOpacity: 0.9
> pointRadius: "${getSize}", // using context.getSize(feature)
> fillColor: "${getColour}" // using context.getColour(feature)
> };
>
> var style = new OpenLayers.Style(template, {context: context});
> vectors = new OpenLayers.Layer.Vector("Vector Layer", {
> styleMap: new OpenLayers.StyleMap(style)});
>
>
> You only have to find an algorithm to derive your pointRadius from
> (using map.getScale() or map.getResolution() and someFactor).
>
> Also, there is no need to set any feature styles in the onload method.
> You're all set with the above definition of the styleMap in the
> constructor for your vector layer.
Thanks for this detailed explanation Andreas. The style/rule framework
is so rich that it's kinda hard to keep up with all of its features.
--
Eric
From crschmidt at metacarta.com Sun Apr 6 16:34:34 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Proportional Symbol Mapping
In-Reply-To: <47F90831.6070006@gmail.com>
References: <47F54687.6090801@sms.ed.ac.uk>
<5ec103de0804040148g6726c09ak822b3b7cd2ae36b7@mail.gmail.com>
<20080404105715.GC15153@metacarta.com> <47F90831.6070006@gmail.com>
Message-ID: <20080406203433.GA32489@metacarta.com>
On Sun, Apr 06, 2008 at 07:28:17PM +0200, Andreas Hocevar wrote:
> Christopher Schmidt wrote:
> Well, the wiki page will have to be changed once it is decided how to
> continue with the rules/filters issue.
In this case, though, there are no rules or filters to worry about; I'm
just not knowledgable to know any better :)
Thanks for the detailed response later in the thread: I'll add that one
to my repitoire of knowledge about styling: I just didn't want to
misdirect in this case (as I would have, had I not waited for you ;)).
Thanks again,
--
Christopher Schmidt
MetaCarta
From euzuro at gmail.com Sun Apr 6 16:36:14 2008
From: euzuro at gmail.com (Erik Uzureau)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Fwd: [OSGeo-Announce] FOSS4G 2008 Registration
and Calls for Papers and Workshops
In-Reply-To: <47F66CA6.6030409@pobox.com>
References: <47F66CA6.6030409@pobox.com>
Message-ID: <6ae3fb590804061336m19f333b3qc5a3d96155bdc1e4@mail.gmail.com>
---------- Forwarded message ----------
From: Frank Warmerdam
Date: Fri, Apr 4, 2008 at 2:00 PM
Subject: [OSGeo-Announce] FOSS4G 2008 Registration and Calls for
Papers and Workshops
To: announce@lists.osgeo.org
If you attend just one GIS conference in 2008, make it FOSS4G 2008! It
promises to be the highlight of your year.
The 2008 Free and Open Source Software for Geospatial (FOSS4G)
conference, incorporating GISSA 2008, is on the horizon.
WHERE: Cape Town, South Africa, at the Cape Town International
Convention Centre. Cape Town is one of the Top 5 worldwide tourist and
conference destinations.
WHEN: Monday 29 September to Friday 3 October. Extend your stay with a
holiday in beautiful South Africa and make the trip even more
worthwhile.
Theme: "Open Source Geospatial: An Option for Developing Nations"
FOSS4G is presented annually by the Open Source Geospatial Foundation
(OSGeo) and in 2007 gathered 700 developers and users of open source
geospatial software as well as managers and decision makers from around
the world to discuss new directions, exciting implementations, and
growing business opportunities in the field of open source geospatial
software.
Incorporation of GISSA 2008 this year opens FOSS4G to a wider field of
GIS practitioners and decision makers. GISSA is the GeoInformation
Society of South Africa and we want all players from South Africa to
join their peers from around the world at this international event. Come
and present your work, learn about Open Source GIS and participate in
the FOSS-Proprietary debate.
South Africa's recent adoption of a National Open Source Policy in
Government and the introduction of GIS into our school syllabus this
year make FOSS4G an especially important conference for South Africa and
other countries in a similar position.
Major features include Hands-on Workshops and Labs, Presentations and
Academic Papers, a live Demo Theatre, large exhibition hall, Outreach
activities, Technical visits and a great social programme including a
gala dinner at Moyo in Stellenbosch.
Visit the website http://www.foss4g2008.org to find out more. Register
or submit an Abstract or Workshop Proposal. This year there will be an
Academic Track in addition to non-peer-reviewed presentations, catering
for a wide range of topics.
Autodesk and Google have already come on board as sponsors. If your
organisation is interested in supporting the conference or exhibiting,
please download the Prospectus from the website.
Please circulate this widely.
I'm looking forward to seeing you in Cape Town!
Gavin Fleming
FOSS4G 2008 Conference Chair
www.foss4g2008.org
_______________________________________________
Announce mailing list
Announce@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/announce
From arnd.wippermann at web.de Sun Apr 6 17:39:07 2008
From: arnd.wippermann at web.de (Arnd Wippermann)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] How to change style['select'] in OL 2.6
In-Reply-To: <47F90A49.5050905@gmail.com>
Message-ID:
It works.
But i'm not able to set the color of the vertices and the radius. Is there a
way to change these values as well?
And when I move a vertice, the feature will change to red (cleared the
selection?).
And the code works not for the ModifyFeature.Control.
Apart from this. With the SelectFeatureControl I can't toggle the selection
( i have to click outside the feature to unselect), but with the
ModifyFeature.Control it's possible. Shouldn't it be for both the same way?
Mit freundlichen Gr?ssen
Arnd Wippermann
http://gis.ibbeck.de/ginfo/
-----Urspr?ngliche Nachricht-----
Von: andreas.hocevar@gmail.com [mailto:andreas.hocevar@gmail.com]
Gesendet: Sonntag, 6. April 2008 19:37
An: Arnd Wippermann
Cc: users@openlayers.org
Betreff: Re: [OpenLayers-Users] How to change style['select'] in OL 2.6
Arnd Wippermann wrote:
> Hi,
>
> First, a great compliment to all the developers of OL. And best, only
> some easy changes needed to update own applications from 2.5 to 2.6.
>
> But some behaviour I'm used to in 2.5, I could not solve for 2.6.
>
> In OL 2.5 I do this to draw red features and draw select features in
yellow:
>
> OpenLayers.Feature.Vector.style['select']['fillColor'] = 'yellow';
> OpenLayers.Feature.Vector.style['select']['strokeColor'] =
> 'yellow';
>
> var layer_style = OpenLayers.Util.extend({},
> OpenLayers.Feature.Vector.style['default']);
>
> style_red = OpenLayers.Util.extend({}, layer_style);
> style_red.strokeColor = "red";
> style_red.fillColor = "red";
>
> vector = new OpenLayers.Layer.Vector("Editable Vectors", {style:
> style_red});
>
>
> With OL 2.6 I have no luck. The features will drawn in red, but the
> selected features are also in red.
>
> How can I change the default style for selected features in OL 2.6?
>
The simplest way would be
var selectStyle = OpenLayers.Util.applyDefaults({
fillColor: "yellow",
strokeColor: "yellow"}, OpenLayers.Feature.Vector.style["select"]);
var selectFeatureControl = OpenLayers.Control.SelectFeature(yourLayer, {
selectStyle: selectStyle});
Regards,
Andreas.
From arnd.wippermann at web.de Sun Apr 6 17:50:27 2008
From: arnd.wippermann at web.de (Arnd Wippermann)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Proportional Symbol Mapping
In-Reply-To: <47F90758.1040001@gmail.com>
Message-ID:
How would it be to add an element "geographical circle" to OL.
Mit freundlichen Gr?ssen
Arnd Wippermann
http://gis.ibbeck.de/ginfo/
-----Urspr?ngliche Nachricht-----
Von: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] Im
Auftrag von Andreas Hocevar
Gesendet: Sonntag, 6. April 2008 19:25
An: Bjorn Sandvik
Cc: users@openlayers.org
Betreff: Re: [OpenLayers-Users] Proportional Symbol Mapping
Bjorn,
your requirement is covered by the new OpenLayers.StyleMap.
First of all, have a look at the styles-context example
(http://www.openlayers.org/dev/examples/styles-context.html). The second
example there (the points in the southern hemisphere) are created with an
advanced template. The same can be done for your use case.
If I take your original code for the calculation of the size:
feature.style.pointRadius = 3 + (pop * (40 / 1312978855));
feature.style.fillColor = feature.attributes['colour'];
I can create the following template:
var context = {
getSize: function(feature) {
return feature.attributes["population"] * someFactor *
map.getScale();
},
getColour: function(feature) {
return feature.attributes["colour"];
}
};
var template = {
fillOpacity: 0.9
pointRadius: "${getSize}", // using context.getSize(feature)
fillColor: "${getColour}" // using context.getColour(feature) };
var style = new OpenLayers.Style(template, {context: context}); vectors =
new OpenLayers.Layer.Vector("Vector Layer", {
styleMap: new OpenLayers.StyleMap(style)});
You only have to find an algorithm to derive your pointRadius from (using
map.getScale() or map.getResolution() and someFactor).
Also, there is no need to set any feature styles in the onload method.
You're all set with the above definition of the styleMap in the constructor
for your vector layer.
Regards,
Andreas.
Bjorn Sandvik wrote:
> My question: Is there a way to keep the relative size of the symbols
> when the users zoom in/out?
> (symbols should keep their size relative to the size of the countries).
>
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
From andreas.hocevar at gmail.com Sun Apr 6 18:20:00 2008
From: andreas.hocevar at gmail.com (Andreas Hocevar)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] How to change style['select'] in OL 2.6
In-Reply-To:
References:
Message-ID: <47F94C90.30903@gmail.com>
Arnd,
Arnd Wippermann wrote:
> But i'm not able to set the color of the vertices and the radius. Is there a
> way to change these values as well?
>
This would be the virtualStyle property of Control.ModifyFeature. But
there is a bug which prevents that from working
(http://trac.openlayers.org/ticket/1495). This should be fixed soon,
probably before the final release of OL 2.6.
Regards,
Andreas.
From B.Sandvik at sms.ed.ac.uk Sun Apr 6 19:01:02 2008
From: B.Sandvik at sms.ed.ac.uk (Bjorn Sandvik)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Proportional Symbol Mapping
In-Reply-To: <47F90758.1040001@gmail.com>
References: <47F54687.6090801@sms.ed.ac.uk> <47F90758.1040001@gmail.com>
Message-ID: <47F9562E.50507@sms.ed.ac.uk>
Thank you!
The circles are now scaling properly on each zoom level:
http://thematicmapping.org/experiments/openlayers/propsymbols_stylemap.html
How can I adjust the hover effect (keep the same size)?
Bjorn
Andreas Hocevar wrote:
> Bjorn,
>
> your requirement is covered by the new OpenLayers.StyleMap.
>
> First of all, have a look at the styles-context example
> (http://www.openlayers.org/dev/examples/styles-context.html). The
> second example there (the points in the southern hemisphere) are
> created with an advanced template. The same can be done for your use
> case.
>
> If I take your original code for the calculation of the size:
>
> feature.style.pointRadius = 3 + (pop * (40 / 1312978855));
> feature.style.fillColor = feature.attributes['colour'];
>
> I can create the following template:
>
> var context = {
> getSize: function(feature) {
> return feature.attributes["population"] * someFactor *
> map.getScale();
> },
> getColour: function(feature) {
> return feature.attributes["colour"];
> }
> };
> var template = {
> fillOpacity: 0.9
> pointRadius: "${getSize}", // using context.getSize(feature)
> fillColor: "${getColour}" // using context.getColour(feature)
> };
>
> var style = new OpenLayers.Style(template, {context: context});
> vectors = new OpenLayers.Layer.Vector("Vector Layer", {
> styleMap: new OpenLayers.StyleMap(style)});
>
>
> You only have to find an algorithm to derive your pointRadius from
> (using map.getScale() or map.getResolution() and someFactor).
>
> Also, there is no need to set any feature styles in the onload method.
> You're all set with the above definition of the styleMap in the
> constructor for your vector layer.
>
> Regards,
> Andreas.
>
> Bjorn Sandvik wrote:
>> My question: Is there a way to keep the relative size of the symbols
>> when the users zoom in/out?
>> (symbols should keep their size relative to the size of the countries).
>>
>
>
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
From tara_athan at alt2is.com Sun Apr 6 23:17:49 2008
From: tara_athan at alt2is.com (Tara Athan)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] registering a click on a marker
Message-ID: <47F9925D.7080809@alt2is.com>
I am confused about how to register an event on a marker.
I have a marker layer at a coarse resolution, with markers assigned to
different variables.
I would like to have a click on the marker cause a zoom in to that
location, plus a replacement of the makers with a new set of markers
that show more detail for that location. I am using code like this
function handleMarkerClickEU(evt) {
map.setCenter(new OpenLayers.LonLat(13.000000,51.000000), 3);
var vols_cyball = new OpenLayers.Layer.Markers( 'volunteers
living in Europe (balloons)');
var vols_cynumb = new OpenLayers.Layer.Markers( 'volunteers
living in Europe (numbers)');
var vols_cytext = new OpenLayers.Layer.Text( "text", {location:
"../data/volsTextCYEU_utf8.csv"});
map.addLayers([vols_cyball, vols_cynumb, vols_cytext]);
map.removeLayer(vols_ctball);
map.removeLayer(vols_ctnumb);
}
var markerEU = new OpenLayers.Marker(new
OpenLayers.LonLat(13.000000,51.000000),icon);
vols_ctball.addMarker( markerEU);
markerEU.events.register("onclick" , markerEU, handleMarkerClickEU);
which doesn't show any errors, but nothing happens.
The event handler worked OK when I registered it to the map, but not
when I register it to a marker.
Thanks for your help, Tara
--
My e-mail delivery has been unreliable lately, so I am asking for
return receipts from all my email messages.
OK'ing the return receipt lets me know that my message was delivered.
Thank you.
Tara Athan
Principal, Alternatives to Invasive Species
tara_athan [AT] alt2is.com
707-485-1198
PO Box 415
Redwood Valley, CA 95470
From crschmidt at metacarta.com Mon Apr 7 00:23:56 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Openlayers 2.6 - zoomLevels.html
In-Reply-To: <20080403170246.GA3157@metacarta.com>
References: <6e9b30fb0804021413p733b032chc55c6a7306536051@mail.gmail.com>
<20080402213331.GB18293@metacarta.com>
<6e9b30fb0804021446h5184fb5fv2bd42791a8168bc6@mail.gmail.com>
<20080402220129.GA24242@metacarta.com>
<6e9b30fb0804021507u76e1c11an481ed9d536419d1e@mail.gmail.com>
<6e9b30fb0804030839o35f3674dtbda162a071afc734@mail.gmail.com>
<20080403160401.GA2206@metacarta.com>
<6e9b30fb0804030918y54069dafj9f66be3109c2c05f@mail.gmail.com>
<20080403170246.GA3157@metacarta.com>
Message-ID: <20080407042356.GA5935@metacarta.com>
On Thu, Apr 03, 2008 at 01:02:47PM -0400, Christopher Schmidt wrote:
> On Thu, Apr 03, 2008 at 10:18:45AM -0600, Linda Rawson wrote:
> > Try clicking on the third zoom level. It does nothing. Then you
> > click on the second and the zoom goes to the third. It is off by one
> > every time. Then go the other direction. More havoc.
>
> #1486
> clicking in panzoombar -> off by one
>
> Thanks for the report.
This is now in trunk, and will be included in 2.6RC2.
Regards,
--
Christopher Schmidt
MetaCarta
From eric.c2c at gmail.com Mon Apr 7 00:50:59 2008
From: eric.c2c at gmail.com (Eric Lemoine)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] registering a click on a marker
In-Reply-To: <47F9925D.7080809@alt2is.com>
References: <47F9925D.7080809@alt2is.com>
Message-ID: <5ec103de0804062150vad42d5bu6b96d8f26885be78@mail.gmail.com>
On Mon, Apr 7, 2008 at 5:17 AM, Tara Athan wrote:
> I am confused about how to register an event on a marker.
> I have a marker layer at a coarse resolution, with markers assigned to
> different variables.
> I would like to have a click on the marker cause a zoom in to that
> location, plus a replacement of the makers with a new set of markers
> that show more detail for that location. I am using code like this
>
> function handleMarkerClickEU(evt) {
> map.setCenter(new OpenLayers.LonLat(13.000000,51.000000), 3);
> var vols_cyball = new OpenLayers.Layer.Markers( 'volunteers
> living in Europe (balloons)');
> var vols_cynumb = new OpenLayers.Layer.Markers( 'volunteers
> living in Europe (numbers)');
> var vols_cytext = new OpenLayers.Layer.Text( "text", {location:
> "../data/volsTextCYEU_utf8.csv"});
> map.addLayers([vols_cyball, vols_cynumb, vols_cytext]);
>
>
> map.removeLayer(vols_ctball);
> map.removeLayer(vols_ctnumb);
> }
>
> var markerEU = new OpenLayers.Marker(new
> OpenLayers.LonLat(13.000000,51.000000),icon);
> vols_ctball.addMarker( markerEU);
> markerEU.events.register("onclick" , markerEU, handleMarkerClickEU);
Hi, try "click" instead of "onclick" ?
--
Eric
From tara_athan at alt2is.com Mon Apr 7 01:19:55 2008
From: tara_athan at alt2is.com (Tara Athan)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] registering a click on a marker
In-Reply-To: <5ec103de0804062150vad42d5bu6b96d8f26885be78@mail.gmail.com>
References: <47F9925D.7080809@alt2is.com>
<5ec103de0804062150vad42d5bu6b96d8f26885be78@mail.gmail.com>
Message-ID: <47F9AEFB.5000908@alt2is.com>
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080406/604777cc/attachment.html
From mail at kevinkempfer.de Mon Apr 7 04:13:28 2008
From: mail at kevinkempfer.de (Kevin Kempfer)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Deactivate Draw-Control after feature added
Message-ID: <47F9D7A8.3030700@kevinkempfer.de>
Hi,
I'm trying to let the user draw a line feature and deactivate the draw
feature after the feature was added to the map. Here's my code:
var drawControls = {
point: new OpenLayers.Control.DrawFeature(vectors,
OpenLayers.Handler.Point),
line: new OpenLayers.Control.DrawFeature(vectors,
OpenLayers.Handler.Path,{featureAdded: toggle }
),
rectangle: new OpenLayers.Control.DrawFeature(vectors,
OpenLayers.Handler.Box),
select: new OpenLayers.Control.SelectFeature(vectors),
};
for(var key in drawControls) {
map.addControl(drawControls[key]);
}
function toggle(feature){
var linecontrol = drawControls['line'];
linecontrol.deactivate();
}
I get an error as soon as the control gets deactivated:
this.point has no properties
-> this.point.destroy();
Here's the trace from FireBug:
destroyFeature()Point.js (line 128)
destroyFeature()Path.js (line 81)
finalize()Point.js (line 139)
dblclick(dblclick clientX=0, clientY=0)Path.js (line 240)
triggerEvent("dblclick", dblclick clientX=0, clientY=0)Events.js (line 612)
handleBrowserEvent(dblclick clientX=0, clientY=0)Events.js (line 640)
bindAsEventListener(dblclick clientX=0, clientY=0)
Looks like the control gets deactivated too early in the feature-adding
process. Is there any advice on how to deactivate a draw control after
drawing a feature?
Thanks,
Kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3249 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080407/7511700e/smime.bin
From tchule at hotmail.com Mon Apr 7 11:36:30 2008
From: tchule at hotmail.com (Benoit PESTY)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Delete Feature
Message-ID:
Hello,
I have a stupid error when trying to delete a vector feature. I've updated OpenLayers from 2.5 to 2.6 (latest from trunk) and when trying to delete a feature I have the corners of the polygon that stay on the map.
I've added a control like this :
// Delete feature
var deleteTool = new OpenLayers.Control.SelectFeature(layer_vector,
{
onSelect:deleteFeature,
});
And the called method is like this :
function deleteFeature(feature) {
getEditableLayer().removeFeatures(feature);
}
The problem seems to be that when getting the vector layer (thru the getLayersByName() method) the feature is set to "modification mode".
I've tried to look around for the "renderIntent" property of the selectfeature control but I don't know the clean way to use it.
Thanks,
Benoit Pesty
_________________________________________________________________
Pack up or back up?use SkyDrive to transfer files or keep extra copies. Learn how.
hthttp://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_packup_042008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080407/7283ed84/attachment.html
From gerald.quintana at gmail.com Mon Apr 7 12:03:47 2008
From: gerald.quintana at gmail.com (=?ISO-8859-1?Q?G=E9rald_Quintana?=)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] TMS Layer origin and bounding box
Message-ID: <4ca668230804070903y56d621e6o8c4005dfc6b5e912@mail.gmail.com>
Hi all,
I have generated TMS pictures with the gdal2tiles.py tool from a
PNG+WLD. I got a tilemapresource.xml and PNG named x/y/z.png with
x<5,y<10 and z<10. I placed them on my webserver and added a TMS layer
to my OL map.
But I can see with FireBug that OL is looking for pictures like
0/1258/973.png that I don't have. I guess that OL doesn't read the
tilemapresource.xml and I have to tell him the origin and bounding box
of the tiles. I tried to set the maxExtent and tilesOrigin attributes
of the TMS layer, but it doesn't help.
Could you tell me what I should do? I presume it's obvious.
Thanks,
Gerald
From peteralen at earthlink.net Mon Apr 7 20:52:39 2008
From: peteralen at earthlink.net (plen)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Where are the 2.5 API docs?????
Message-ID: <16544376.post@talk.nabble.com>
Hello,
On the OpenLayers home page (http://openlayers.org/) there is a link to the
latest release (http://www.openlayers.org/api/OpenLayers.js) which is the
2.5 release. At the top of the same page it has a link titled "Class
Documentation" which leads to
"http://dev.openlayers.org/apidocs/files/OpenLayers-js.html".
It is clear to me now that the class documentation is not the 2.5 API
documentation, because I continue to get errors when I use some of the
properties/methods listed in the API when using the 2.5 JS file. This is
extremely frustrating because now I do not know what my API options are.
Is there a 2.5 API documentation page somewhere?
Thanks for your help - Peter
--
View this message in context: http://www.nabble.com/Where-are-the-2.5-API-docs------tp16544376p16544376.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
From crschmidt at metacarta.com Mon Apr 7 21:25:28 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Where are the 2.5 API docs?????
In-Reply-To: <16544376.post@talk.nabble.com>
References: <16544376.post@talk.nabble.com>
Message-ID: <20080408012528.GA23925@metacarta.com>
On Mon, Apr 07, 2008 at 05:52:39PM -0700, plen wrote:
>
> Hello,
>
> On the OpenLayers home page (http://openlayers.org/) there is a link to the
> latest release (http://www.openlayers.org/api/OpenLayers.js) which is the
> 2.5 release. At the top of the same page it has a link titled "Class
> Documentation" which leads to
> "http://dev.openlayers.org/apidocs/files/OpenLayers-js.html".
>
> It is clear to me now that the class documentation is not the 2.5 API
> documentation, because I continue to get errors when I use some of the
> properties/methods listed in the API when using the 2.5 JS file. This is
> extremely frustrating because now I do not know what my API options are.
>
> Is there a 2.5 API documentation page somewhere?
>
http://dev.openlayers.org/releases/OpenLayers-2.5/doc/apidocs/files/OpenLayers-js.html
Regards,
--
Christopher Schmidt
MetaCarta
From peteralen at earthlink.net Mon Apr 7 21:28:39 2008
From: peteralen at earthlink.net (plen)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] How to obtain reference to map layer in 2.5????
Message-ID: <16545652.post@talk.nabble.com>
Hello,
I am using OpenLayers 2.5. Our situation is that we are getting a handle to
the map after someone else has loaded some WMS map layers. So, by the time
I can do anything with the OpenLayers map, another group has added 10 or 11
map layers through calls like:
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'},
options);
I want to get a handle to a particular layer and I think I have to use the
OpenLayers API to get the layer. For example, the 2.5 API has a
map.getLayer([layer_id]); and then a map.setBaseLayer(OpenLayers.Layer);
My question is that you have to have the layer ID as the argument for the
getLayer() function. Since I did not load any of those layers, I don't know
how I would get the ID for the layer I am interested in. There is no
generic function which returns an array of all the layers to which I could
just cycle through and check each layers name, for example. Version 2.6 has
more functions to obtain layer data but we must use 2.5 for the time being.
Any thoughts how I can programmatically go through the layers?
Thanks - Peter
--
View this message in context: http://www.nabble.com/How-to-obtain-reference-to-map-layer-in-2.5-----tp16545652p16545652.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
From pagameba at gmail.com Mon Apr 7 21:39:19 2008
From: pagameba at gmail.com (Paul Spencer)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] How to obtain reference to map layer in
2.5????
In-Reply-To: <16545652.post@talk.nabble.com>
References: <16545652.post@talk.nabble.com>
Message-ID:
I would imagine that you can use something like:
for (var i=0; i
> Hello,
>
> I am using OpenLayers 2.5. Our situation is that we are getting a
> handle to
> the map after someone else has loaded some WMS map layers. So, by
> the time
> I can do anything with the OpenLayers map, another group has added
> 10 or 11
> map layers through calls like:
>
> var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
> "http://labs.metacarta.com/wms/vmap0?", {layers:
> 'basic'},
> options);
>
> I want to get a handle to a particular layer and I think I have to
> use the
> OpenLayers API to get the layer. For example, the 2.5 API has a
> map.getLayer([layer_id]); and then a
> map.setBaseLayer(OpenLayers.Layer);
>
> My question is that you have to have the layer ID as the argument
> for the
> getLayer() function. Since I did not load any of those layers, I
> don't know
> how I would get the ID for the layer I am interested in. There is no
> generic function which returns an array of all the layers to which I
> could
> just cycle through and check each layers name, for example. Version
> 2.6 has
> more functions to obtain layer data but we must use 2.5 for the time
> being.
>
> Any thoughts how I can programmatically go through the layers?
>
> Thanks - Peter
>
> --
> View this message in context: http://www.nabble.com/How-to-obtain-reference-to-map-layer-in-2.5-----tp16545652p16545652.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
From pedrosimonetti at gmail.com Mon Apr 7 23:21:20 2008
From: pedrosimonetti at gmail.com (Pedro Simonetti)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] geometry.getLength() returns what format
Message-ID: <16543866.post@talk.nabble.com>
Dear Developers,
I'm considering using the following code in an production environment, but I
read in this thread, that this shouldn't be used in production environments,
because isn't stable enought.
I've researched about measure tools, and I saw many differents attempts of
implementations, but this seems to be the most up-to-date one, as far as I
can see.
What's the problem in using this is a production environment? Does anybody
has another better solution to point me out?
regards,
Pedro Simonetti.
PS: Congratulations for this amazing project!
Christopher Schmidt-4 wrote:
>
> This measurement is in map units. If you want it in miles, you're going
> to want to look at:
>
> http://dev.openlayers.org/sandbox/tschaub/feature/examples/measure.html
> http://dev.openlayers.org/sandbox/tschaub/feature/lib/OpenLayers/Control/Measure.js
>
--
View this message in context: http://www.nabble.com/geometry.getLength%28%29-returns-what-format-tp12508821p16543866.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
From tara_athan at alt2is.com Tue Apr 8 00:32:20 2008
From: tara_athan at alt2is.com (Tara Athan)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Two Google layers with specified max and min
zoom levels
In-Reply-To: <16545652.post@talk.nabble.com>
References: <16545652.post@talk.nabble.com>
Message-ID: <47FAF554.20305@alt2is.com>
I am trying to get the following simple map to work so that the user can
zoom in to the maximum level available for each layer, and when
switching between the two base layers there are not any jumps in the
zoom level. I see several posts in the forum about this issue, but none
seem to have the complete solution. This would make a great example map
to add to your list, if someone could help get this working.
Thanks, Tara
From pedrosimonetti at gmail.com Tue Apr 8 02:28:02 2008
From: pedrosimonetti at gmail.com (Pedro Simonetti)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] geometry.getLength() returns what format
In-Reply-To: <16543866.post@talk.nabble.com>
References: <44b0bbf60709051200o1285b11bwb1863fcdabd730b7@mail.gmail.com>
<20070905193115.GA20066@metacarta.com>
<16543866.post@talk.nabble.com>
Message-ID: <16547959.post@talk.nabble.com>
I've mistyped the question. What I supposed to ask is:
What's the problem in using this IN a production environment? Does anybody
has another better solution to point me out?
Pedro Simonetti wrote:
>
> Dear Developers,
>
> I'm considering using the following code in an production environment, but
> I read in this thread, that this shouldn't be used in production
> environments, because isn't stable enought.
>
> I've researched about measure tools, and I saw many differents attempts of
> implementations, but this seems to be the most up-to-date one, as far as I
> can see.
>
> What's the problem in using this is a production environment? Does anybody
> has another better solution to point me out?
>
> regards,
>
> Pedro Simonetti.
>
> PS: Congratulations for this amazing project!
>
>
> Christopher Schmidt-4 wrote:
>>
>> This measurement is in map units. If you want it in miles, you're going
>> to want to look at:
>>
>> http://dev.openlayers.org/sandbox/tschaub/feature/examples/measure.html
>> http://dev.openlayers.org/sandbox/tschaub/feature/lib/OpenLayers/Control/Measure.js
>>
>
--
View this message in context: http://www.nabble.com/geometry.getLength%28%29-returns-what-format-tp12508821p16547959.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
From brad at cubewerx.com.au Tue Apr 8 03:59:47 2008
From: brad at cubewerx.com.au (bradleyspencer)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] 2.6 problem with vectors in IE
Message-ID:
List,
I have been using 2.6 because of a new feature I wanted. However, I have
found that in IE when creating vectors (i.e. drawing of the edges of a
mouse-Shift selection box in my case) they are always drawn in the top left
corner of the map Div. The vectors look correct just located in wrong place.
And when you zoom out it stays in the left corner i.e. moves to the left top
corner. Aspect ratio and dimensions of box are correct and the coordinates
used were fine for centering and zooming over the collection. Just the box
(or vectors) are in the wrong place. Works OK when I go back to 2.5 and
works OK in FF.
Just thought you might like to know as this took me awhile to twig what was
happening.
Cheers,
Brad Spencer
General Manager
CubeWerx Australia Pty Ltd
ABN: 37 115 163 285
Mob: +61 (0)404 841 131
Tel/Fax: +61 (0)2 9481 7024
mailto:brad@cubewerx.com.au
http://www.cubewerx.com.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080408/9946d139/attachment.html
From kobben at itc.nl Tue Apr 8 05:53:47 2008
From: kobben at itc.nl (Barend Kobben)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] FW: Where are the 2.5 API docs?????
In-Reply-To:
Message-ID:
PLEASE guys, can you please indicate the version clearly this on the actual
pages, or at very least clearly in the URL. I have been falling into the
same trap as I am sure have many many others. Please rememeber not everyone
of your users is an on-the-edge-latest-stuff developer, we just want to
build real life apps that work and for which we can find information that as
much as possible is actually useful.
I think OL is one of the best things coming out of the FOSS community, but
you make it quite hard for beginners to get on board...
Yours,
--
Barend K?bben
International Institute for Geo-Information
Sciences and Earth Observation (ITC)
PO Box 6
7500AA Enschede, The Netherlands
+31 (0)53 4874253
On 08-04-08 03:25, "Christopher Schmidt" wrote:
> On Mon, Apr 07, 2008 at 05:52:39PM -0700, plen wrote:
>>
>> Hello,
>>
>> On the OpenLayers home page (http://openlayers.org/) there is a link to the
>> latest release (http://www.openlayers.org/api/OpenLayers.js) which is the
>> 2.5 release. At the top of the same page it has a link titled "Class
>> Documentation" which leads to
>> "http://dev.openlayers.org/apidocs/files/OpenLayers-js.html".
>>
>> It is clear to me now that the class documentation is not the 2.5 API
>> documentation, because I continue to get errors when I use some of the
>> properties/methods listed in the API when using the 2.5 JS file. This is
>> extremely frustrating because now I do not know what my API options are.
>>
>> Is there a 2.5 API documentation page somewhere?
>>
>
> http://dev.openlayers.org/releases/OpenLayers-2.5/doc/apidocs/files/OpenLayers
> -js.html
>
> Regards,
International Institute for Geo-Information Science and Earth Observation (ITC)
Chamber of Commerce: 410 27 560
E-mail disclaimer
The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission.
From crschmidt at metacarta.com Tue Apr 8 07:37:20 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] FW: Where are the 2.5 API docs?????
In-Reply-To:
References:
Message-ID: <20080408113720.GB307@metacarta.com>
On Tue, Apr 08, 2008 at 11:53:47AM +0200, Barend Kobben wrote:
> PLEASE guys, can you please indicate the version clearly this on the actual
> pages, or at very least clearly in the URL. I have been falling into the
> same trap as I am sure have many many others. Please rememeber not everyone
> of your users is an on-the-edge-latest-stuff developer, we just want to
> build real life apps that work and for which we can find information that as
> much as possible is actually useful.
>
> I think OL is one of the best things coming out of the FOSS community, but
> you make it quite hard for beginners to get on board...
Okay, so what should we do? What would be more helpful to you?
My standard assumption is that anyone using OpenLayers seriously is
going to download the code. With the code ships a full set of
documentation in the 'doc' directory. If you read those, they are teh
docs for the version you downloaded.
Apparently this isn't the case.
Note that before a couple months ago, we didn't *have* versioned docs:
this is an improvement in our process, which is constantly evolving.
Although I understand that you are frustrated, there is only so much
developer time that can be invested into things like this without
negatively impacting active development of the project: doubly so
because, at the moment, I'm one of two people with access to change
things on the server.
Direction on exactly what you think would be more useful than the
current situation would be helpful: What text you would change, what
link you would change, etc. This is much more helpful than claiming "You
must do better!": to be honest, a fair amount, if not all, of the code
for the website is in svn, so if you have a problem that you think you
can change, the answer is the same as always:
"Patches welcome."
Regards,
--
Christopher Schmidt
MetaCarta
From crschmidt at metacarta.com Tue Apr 8 07:39:44 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] 2.6 problem with vectors in IE
In-Reply-To:
References:
Message-ID: <20080408113944.GC307@metacarta.com>
On Tue, Apr 08, 2008 at 05:59:47PM +1000, bradleyspencer wrote:
> List,
>
> I have been using 2.6 because of a new feature I wanted. However, I have
> found that in IE when creating vectors (i.e. drawing of the edges of a
> mouse-Shift selection box in my case) they are always drawn in the top left
> corner of the map Div.
Pretty sure this is #1477, which is fixed in trunk (and will soon be
released in RC2): can you try pointing to
http://dev.openlayers.org/nightly/OpenLayers.js and see if it's fixed?
Regards,
--
Christopher Schmidt
MetaCarta
From peteralen at earthlink.net Tue Apr 8 08:54:10 2008
From: peteralen at earthlink.net (Peter Len)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] How to obtain reference to map layer in
2.5????
Message-ID: <19273491.1207659250969.JavaMail.root@elwamui-huard.atl.sa.earthlink.net>
Paul,
Thanks for the reply. That worked fine but my frustration with some of this is that the API (http://dev.openlayers.org/releases/OpenLayers-2.5/doc/apidocs/files/OpenLayers/Map-js.html) does not list a "layers" property for the map object. How is someone suppose to know that it is available to use?
Thanks for your insight - Peter
-----Original Message-----
>From: Paul Spencer
>Sent: Apr 7, 2008 9:39 PM
>To: plen
>Cc: users@openlayers.org
>Subject: Re: [OpenLayers-Users] How to obtain reference to map layer in 2.5????
>
>I would imagine that you can use something like:
>
>for (var i=0; i var layer = map.layers[i];
> //do something with the layer?
>}
>
>Cheers
>
>Paul
>
>PS Firebug is a great extension for firefox that allows you to inspect
>live javascript objects like the map object and find what you need.
>
>On 7-Apr-08, at 9:28 PM, plen wrote:
>>
>> Hello,
>>
>> I am using OpenLayers 2.5. Our situation is that we are getting a
>> handle to
>> the map after someone else has loaded some WMS map layers. So, by
>> the time
>> I can do anything with the OpenLayers map, another group has added
>> 10 or 11
>> map layers through calls like:
>>
>> var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
>> "http://labs.metacarta.com/wms/vmap0?", {layers:
>> 'basic'},
>> options);
>>
>> I want to get a handle to a particular layer and I think I have to
>> use the
>> OpenLayers API to get the layer. For example, the 2.5 API has a
>> map.getLayer([layer_id]); and then a
>> map.setBaseLayer(OpenLayers.Layer);
>>
>> My question is that you have to have the layer ID as the argument
>> for the
>> getLayer() function. Since I did not load any of those layers, I
>> don't know
>> how I would get the ID for the layer I am interested in. There is no
>> generic function which returns an array of all the layers to which I
>> could
>> just cycle through and check each layers name, for example. Version
>> 2.6 has
>> more functions to obtain layer data but we must use 2.5 for the time
>> being.
>>
>> Any thoughts how I can programmatically go through the layers?
>>
>> Thanks - Peter
>>
>> --
>> View this message in context: http://www.nabble.com/How-to-obtain-reference-to-map-layer-in-2.5-----tp16545652p16545652.html
>> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Users mailing list
>> Users@openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>
From simone.gadenz at jrc.it Tue Apr 8 09:09:34 2008
From: simone.gadenz at jrc.it (Simone Gadenz)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] OpenLayers.loadURL returns an error if the page
to be loaded requires authentication
Message-ID: <010601c89979$cbdefbe0$639cf3a0$@gadenz@jrc.it>
Hi all,
trying to access to a page requiring authentication using the
OpenLayers.loadURL returns an error saying "unhandled request returns ok".
The page works perfectly if opened through the browser but not using the OL
requests. Ideas?
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080408/ec97308b/attachment.html
From crschmidt at metacarta.com Tue Apr 8 09:19:26 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] How to obtain reference to map layer in
2.5????
In-Reply-To: <19273491.1207659250969.JavaMail.root@elwamui-huard.atl.sa.earthlink.net>
References: <19273491.1207659250969.JavaMail.root@elwamui-huard.atl.sa.earthlink.net>
Message-ID: <20080408131925.GA1475@metacarta.com>
On Tue, Apr 08, 2008 at 08:54:10AM -0400, Peter Len wrote:
> Paul,
>
> Thanks for the reply. That worked fine but my frustration with some of this is that the API (http://dev.openlayers.org/releases/OpenLayers-2.5/doc/apidocs/files/OpenLayers/Map-js.html) does not list a "layers" property for the map object. How is someone suppose to know that it is available to use?
Peter,
In general, we take a very conservative position as to what is an API
property vs. what is not an API Property. The reason for this is that in
general, we have no specific ideas on how we might need to change the
code in the future to support a particular use case.
As an example:
In OpenLayers 2.5, we had controls which had multiple '.fooHandler'
properties. Things like 'zoomWheelHandler', etc. In 2.6, in order to
protect ourselves against memory leaks, we moved these handlers into a
'.handlers' object, with multiple keys ('foo', 'bar', 'baz'), so that
they could be automatically destroyed by the base control class, thus
ensuring that their DOM elements were properly decoupled from the
Javascript.
If we had made the .fooHandler property an API property, we wouldn't
have been able to make this change, and would have had to make a much
more significant change which was more fragile.
This is the case despite the fact that using handlers as an API property
is absolutely useful -- I use it in some of my own applications.
The lack of something being an API property does not mean "Absolutely do
not use it." It means "This may change in a future release of
OpenLayers: you should use it with caution."
For that reason, we include a full set of documentation of the *other*
properties on objects:
http://dev.openlayers.org/releases/OpenLayers-2.5/doc/devdocs/files/OpenLayers/Map-js.html#OpenLayers.Map.layers
, in this particular case.
If you are not comfortable with the fact that something is *not* an API
property, then the right thing to do is to make a proposal to the dev
list that it be made an API property.
In the case of map.layers, I have no problem making it an API property
upon being asked: the biggest reason we don't make things API properties
is so that people *will* ask, and we'll know what they're doing with it.
By doing this, for example, we were able to determine that what people
actually typically want is not direct access to the layers object
itself, but instead the ability to, for example, fetch a list of layers
by name. So OpenLayers 2.6 -- while keeping map.layers out of the API --
adds an OpenLayers.Map.getLayersBy() function, which allows for you to
get a layer by any property it has: for example:
map.getLayersBy("name", "My WMS Layer");
Additionally, since getLayersByName seems a common use case, we have a
wrapper:
map.getLayersByName("My WMS Layer");
Now, if we find out in the future we need to split layers into
.baseLayers and .overlayLayers for some reason, we can do so -- and we
haven't broken the API. Additionally, we've added functionality which is
common to more than one application, and I believe we've met most of the
needs that an application would have to loop through the layers
property, without exposing ourselves to possible holes in backwards
compatibility.
This conservatism has served us well through many releases, and although
I understand that it may make life slightly more difficult, we do our
best to meet both sets of needs: those who need a very stable API
between versions can use the API properties, those who are willing to
take a bit more risk and do testing before upgrades to ensure their
application still works can do so, and the developers can make the
explicit decision to include things in the API as they become neccesary,
rather than simply by guessing what makes sense ahead of time.
Hopefully this helps to explain our policy such that it is reasonably
understandable without causing too much difficulty.
Best Regards,
--
Christopher Schmidt
MetaCarta
From bluecarto at gmail.com Tue Apr 8 09:29:42 2008
From: bluecarto at gmail.com (Pierre GIRAUD)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] geometry.getLength() returns what format
In-Reply-To: <16547959.post@talk.nabble.com>
References: <44b0bbf60709051200o1285b11bwb1863fcdabd730b7@mail.gmail.com>
<20070905193115.GA20066@metacarta.com> <16543866.post@talk.nabble.com>
<16547959.post@talk.nabble.com>
Message-ID:
The reason why you were advised not to use this code in a production
environnement is probably because it comes from a sandbox.
As you probably already know, sandboxes are there to let developers
play with OpenLayers code and new features.
That said, the considered code may still need work, or may be based on
an old version of OpenLayers. It will therefore be somewhat difficult
to upgrade to a new OpenLayers version (2.6 when it will be out for
example) when you'll need to.
I think that there's no other constraints. And you're free to use this
code either way.
You just need to be aware of what precautions you'll have to follow.
For this particular feature (measuring tools), it would have been
easier if they were provided as an OpenLayers addin. But I'm pretty
sure that addins came after this code was initially written.
Regards,
Pierre
On Tue, Apr 8, 2008 at 8:28 AM, Pedro Simonetti
wrote:
>
> I've mistyped the question. What I supposed to ask is:
>
> What's the problem in using this IN a production environment? Does anybody
>
> has another better solution to point me out?
>
>
>
> Pedro Simonetti wrote:
> >
> > Dear Developers,
> >
> > I'm considering using the following code in an production environment, but
> > I read in this thread, that this shouldn't be used in production
> > environments, because isn't stable enought.
> >
> > I've researched about measure tools, and I saw many differents attempts of
> > implementations, but this seems to be the most up-to-date one, as far as I
> > can see.
> >
> > What's the problem in using this is a production environment? Does anybody
> > has another better solution to point me out?
> >
> > regards,
> >
> > Pedro Simonetti.
> >
> > PS: Congratulations for this amazing project!
> >
> >
> > Christopher Schmidt-4 wrote:
> >>
> >> This measurement is in map units. If you want it in miles, you're going
> >> to want to look at:
> >>
> >> http://dev.openlayers.org/sandbox/tschaub/feature/examples/measure.html
> >> http://dev.openlayers.org/sandbox/tschaub/feature/lib/OpenLayers/Control/Measure.js
> >>
> >
>
> --
> View this message in context: http://www.nabble.com/geometry.getLength%28%29-returns-what-format-tp12508821p16547959.html
>
>
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
From crschmidt at metacarta.com Tue Apr 8 09:37:37 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] OpenLayers.loadURL returns an error if the
page to be loaded requires authentication
In-Reply-To: <010601c89979$cbdefbe0$639cf3a0$@gadenz@jrc.it>
References: <010601c89979$cbdefbe0$639cf3a0$@gadenz@jrc.it>
Message-ID: <20080408133737.GC1475@metacarta.com>
On Tue, Apr 08, 2008 at 03:09:34PM +0200, Simone Gadenz wrote:
> Hi all,
>
>
>
> trying to access to a page requiring authentication using the
> OpenLayers.loadURL returns an error saying "unhandled request returns ok".
> The page works perfectly if opened through the browser but not using the OL
> requests. Ideas?
Are you using a ProxyHost? the proxy.cgi that OpenLayers ships with
doesn't do anything smart with auth.
Regards,
--
Christopher Schmidt
MetaCarta
From gerald.quintana at gmail.com Tue Apr 8 09:50:00 2008
From: gerald.quintana at gmail.com (=?ISO-8859-1?Q?G=E9rald_Quintana?=)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] TMS Layer origin and bounding box
In-Reply-To: <4ca668230804070903y56d621e6o8c4005dfc6b5e912@mail.gmail.com>
References: <4ca668230804070903y56d621e6o8c4005dfc6b5e912@mail.gmail.com>
Message-ID: <4ca668230804080650y562bccb2m5df02259a9f34ed7@mail.gmail.com>
The gdal2tiles.py tools generates a sample openlayers.html which works
perfectly with the script http://www.openlayers.org/api/OpenLayers.js.
As soon as I replace it by the 2.6rc1 release, I get an error
"this.projection.getUnits is not a function" in the setMap function of
the Layer class.
I think it comes from the way maxExtent and projection options are
initialized in the example:
var options = {
controls: [],
maxExtent: new OpenLayers.Bounds(0, 0, 2770, 2270),
maxResolution: 16,
numZoomLevels: 5,
units: 'pixels',
projection: ""
};
map = new OpenLayers.Map("map", options);
map.addControl(new OpenLayers.Control.PanZoomBar());
map.addControl(new OpenLayers.Control.MouseDefaults());
map.addControl(new OpenLayers.Control.KeyboardDefaults());
// OpenLayers 2.5 TMS driver
layer = new OpenLayers.Layer.TMS( "TMS",
"", {layername: '.', serviceVersion: '.', type:'png'} );
map.addLayer(layer);
map.zoomTo(3);
Did someone used this gdal2tiles.py tool?
How can I mix this TMS+strange SRS with a classical WMS layer+EPSG:4326?
Thanks for your help,
G?rald
2008/4/7, G?rald Quintana :
> Hi all,
>
> I have generated TMS pictures with the gdal2tiles.py tool from a
> PNG+WLD. I got a tilemapresource.xml and PNG named x/y/z.png with
> x<5,y<10 and z<10. I placed them on my webserver and added a TMS layer
> to my OL map.
>
> But I can see with FireBug that OL is looking for pictures like
> 0/1258/973.png that I don't have. I guess that OL doesn't read the
> tilemapresource.xml and I have to tell him the origin and bounding box
> of the tiles. I tried to set the maxExtent and tilesOrigin attributes
> of the TMS layer, but it doesn't help.
>
> Could you tell me what I should do? I presume it's obvious.
> Thanks,
> Gerald
>
From crschmidt at metacarta.com Tue Apr 8 09:56:16 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] TMS Layer origin and bounding box
In-Reply-To: <4ca668230804080650y562bccb2m5df02259a9f34ed7@mail.gmail.com>
References: <4ca668230804070903y56d621e6o8c4005dfc6b5e912@mail.gmail.com>
<4ca668230804080650y562bccb2m5df02259a9f34ed7@mail.gmail.com>
Message-ID: <20080408135616.GA2396@metacarta.com>
On Tue, Apr 08, 2008 at 03:50:00PM +0200, G?rald Quintana wrote:
> The gdal2tiles.py tools generates a sample openlayers.html which works
> perfectly with the script http://www.openlayers.org/api/OpenLayers.js.
> As soon as I replace it by the 2.6rc1 release, I get an error
> "this.projection.getUnits is not a function" in the setMap function of
> the Layer class.
Oof. That's no good.
> I think it comes from the way maxExtent and projection options are
> initialized in the example:
> var options = {
> controls: [],
> maxExtent: new OpenLayers.Bounds(0, 0, 2770, 2270),
> maxResolution: 16,
> numZoomLevels: 5,
> units: 'pixels',
> projection: ""
> };
Yeah, if you drop "projection":"" from that, it should work okay.
> map = new OpenLayers.Map("map", options);
> map.addControl(new OpenLayers.Control.PanZoomBar());
> map.addControl(new OpenLayers.Control.MouseDefaults());
> map.addControl(new OpenLayers.Control.KeyboardDefaults());
> // OpenLayers 2.5 TMS driver
> layer = new OpenLayers.Layer.TMS( "TMS",
> "", {layername: '.', serviceVersion: '.', type:'png'} );
> map.addLayer(layer);
> map.zoomTo(3);
>
> Did someone used this gdal2tiles.py tool?
> How can I mix this TMS+strange SRS with a classical WMS layer+EPSG:4326?
Is your original image a worldwide map in EPSG:4326? If not, it's likely
that the answer is "You can't.", because OpenLayers doesn't support TMS
with different maxExtent and so on (though there is a Summer of Code
proposal to improve this.)
Regards,
--
Christopher Schmidt
MetaCarta
From simone.gadenz at jrc.it Tue Apr 8 10:07:39 2008
From: simone.gadenz at jrc.it (Simone Gadenz)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] OpenLayers.loadURL returns an error if the
page to be loaded requires authentication
In-Reply-To: <20080408133737.GC1475@metacarta.com>
References: <010601c89979$cbdefbe0$639cf3a0$@gadenz@jrc.it>
<20080408133737.GC1475@metacarta.com>
Message-ID: <011701c89981$e7b0e560$b712b020$@gadenz@jrc.it>
No, the page is on the same server but protected using windows
authentication system.
Simone
-----Original Message-----
From: Christopher Schmidt [mailto:crschmidt@metacarta.com]
Sent: marted? 8 aprile 2008 15.38
To: Simone Gadenz
Cc: users@openlayers.org
Subject: Re: [OpenLayers-Users] OpenLayers.loadURL returns an error if the
page to be loaded requires authentication
On Tue, Apr 08, 2008 at 03:09:34PM +0200, Simone Gadenz wrote:
> Hi all,
>
>
>
> trying to access to a page requiring authentication using the
> OpenLayers.loadURL returns an error saying "unhandled request returns ok".
> The page works perfectly if opened through the browser but not using the
OL
> requests. Ideas?
Are you using a ProxyHost? the proxy.cgi that OpenLayers ships with
doesn't do anything smart with auth.
Regards,
--
Christopher Schmidt
MetaCarta
From gerald.quintana at gmail.com Tue Apr 8 10:14:52 2008
From: gerald.quintana at gmail.com (=?ISO-8859-1?Q?G=E9rald_Quintana?=)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] TMS Layer origin and bounding box
In-Reply-To: <20080408135616.GA2396@metacarta.com>
References: <4ca668230804070903y56d621e6o8c4005dfc6b5e912@mail.gmail.com>
<4ca668230804080650y562bccb2m5df02259a9f34ed7@mail.gmail.com>
<20080408135616.GA2396@metacarta.com>
Message-ID: <4ca668230804080714h613e8e27r22b4d39bd2ef3746@mail.gmail.com>
2008/4/8, Christopher Schmidt :
> Yeah, if you drop "projection":"" from that, it should work okay.
>
Yes it's better.
> Is your original image a worldwide map in EPSG:4326?
>
EPSG:4326: yes, worldwide: no :'(
> If not, it's likely that the answer is "You can't.",
> because OpenLayers doesn't support TMS
> with different maxExtent and so on (though there is a Summer of Code
> proposal to improve this.)
>
Thanks for the explanation, I was looking for a solution to improve
performance. I'll have to keep my WMS layer and search for
improvements on the GeoServer side.
Gerald
From crschmidt at metacarta.com Tue Apr 8 10:23:16 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] OpenLayers.loadURL returns an error if the
page to be loaded requires authentication
In-Reply-To: <011701c89981$e7b0e560$b712b020$@gadenz@jrc.it>
References: <20080408133737.GC1475@metacarta.com>
<011701c89981$e7b0e560$b712b020$@gadenz@jrc.it>
Message-ID: <20080408142315.GA2473@metacarta.com>
On Tue, Apr 08, 2008 at 04:07:39PM +0200, Simone Gadenz wrote:
> No, the page is on the same server but protected using windows
> authentication system.
Try looking at the requests in the Firebug console, and see what is
coming back in the headers, etc.
Regards,
--
Christopher Schmidt
MetaCarta
From simone.gadenz at jrc.it Tue Apr 8 11:01:12 2008
From: simone.gadenz at jrc.it (Simone Gadenz)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] OpenLayers.loadURL returns an error if
the page to be loaded requires authentication
In-Reply-To: <20080408142315.GA2473@metacarta.com>
References: <20080408133737.GC1475@metacarta.com> <011701c89981$e7b0e560$b712b020$@gadenz@jrc.it>
<20080408142315.GA2473@metacarta.com>
Message-ID: <012f01c89989$63fb9320$2bf2b960$@gadenz@jrc.it>
Done! Thanks!!
Using firebug I saw the page was loading but I had done an error passing the
name of the functions for success and failure management. Everything works
fine now!?
Cheers
Simone
-----Original Message-----
From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] On
Behalf Of Christopher Schmidt
Sent: marted? 8 aprile 2008 16.23
To: users@openlayers.org
Subject: Re: [OpenLayers-Users] OpenLayers.loadURL returns an error if the
page to be loaded requires authentication
On Tue, Apr 08, 2008 at 04:07:39PM +0200, Simone Gadenz wrote:
> No, the page is on the same server but protected using windows
> authentication system.
Try looking at the requests in the Firebug console, and see what is
coming back in the headers, etc.
Regards,
--
Christopher Schmidt
MetaCarta
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
From peteralen at earthlink.net Tue Apr 8 11:06:03 2008
From: peteralen at earthlink.net (Peter Len)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] How to obtain reference to map layer in
2.5????
Message-ID: <33312417.1207667163718.JavaMail.root@elwamui-huard.atl.sa.earthlink.net>
Christopher,
Thanks for info. I definitely see where you are coming from and now that you have supplied me with a link to some docs that list non-API items, I am good. At least now I can see what other things are available.
Thanks - Peter
-----Original Message-----
>From: Christopher Schmidt
>Sent: Apr 8, 2008 9:19 AM
>To: Peter Len
>Cc: Paul Spencer , users@openlayers.org
>Subject: Re: [OpenLayers-Users] How to obtain reference to map layer in 2.5????
>
>On Tue, Apr 08, 2008 at 08:54:10AM -0400, Peter Len wrote:
>> Paul,
>>
>> Thanks for the reply. That worked fine but my frustration with some of this is that the API (http://dev.openlayers.org/releases/OpenLayers-2.5/doc/apidocs/files/OpenLayers/Map-js.html) does not list a "layers" property for the map object. How is someone suppose to know that it is available to use?
>
>Peter,
>
>In general, we take a very conservative position as to what is an API
>property vs. what is not an API Property. The reason for this is that in
>general, we have no specific ideas on how we might need to change the
>code in the future to support a particular use case.
>
>As an example:
>
>In OpenLayers 2.5, we had controls which had multiple '.fooHandler'
>properties. Things like 'zoomWheelHandler', etc. In 2.6, in order to
>protect ourselves against memory leaks, we moved these handlers into a
>'.handlers' object, with multiple keys ('foo', 'bar', 'baz'), so that
>they could be automatically destroyed by the base control class, thus
>ensuring that their DOM elements were properly decoupled from the
>Javascript.
>
>If we had made the .fooHandler property an API property, we wouldn't
>have been able to make this change, and would have had to make a much
>more significant change which was more fragile.
>
>This is the case despite the fact that using handlers as an API property
>is absolutely useful -- I use it in some of my own applications.
>
>The lack of something being an API property does not mean "Absolutely do
>not use it." It means "This may change in a future release of
>OpenLayers: you should use it with caution."
>
>For that reason, we include a full set of documentation of the *other*
>properties on objects:
>http://dev.openlayers.org/releases/OpenLayers-2.5/doc/devdocs/files/OpenLayers/Map-js.html#OpenLayers.Map.layers
>, in this particular case.
>
>If you are not comfortable with the fact that something is *not* an API
>property, then the right thing to do is to make a proposal to the dev
>list that it be made an API property.
>
>In the case of map.layers, I have no problem making it an API property
>upon being asked: the biggest reason we don't make things API properties
>is so that people *will* ask, and we'll know what they're doing with it.
>
>By doing this, for example, we were able to determine that what people
>actually typically want is not direct access to the layers object
>itself, but instead the ability to, for example, fetch a list of layers
>by name. So OpenLayers 2.6 -- while keeping map.layers out of the API --
>adds an OpenLayers.Map.getLayersBy() function, which allows for you to
>get a layer by any property it has: for example:
>
> map.getLayersBy("name", "My WMS Layer");
>
>Additionally, since getLayersByName seems a common use case, we have a
>wrapper:
>
> map.getLayersByName("My WMS Layer");
>
>Now, if we find out in the future we need to split layers into
>.baseLayers and .overlayLayers for some reason, we can do so -- and we
>haven't broken the API. Additionally, we've added functionality which is
>common to more than one application, and I believe we've met most of the
>needs that an application would have to loop through the layers
>property, without exposing ourselves to possible holes in backwards
>compatibility.
>
>This conservatism has served us well through many releases, and although
>I understand that it may make life slightly more difficult, we do our
>best to meet both sets of needs: those who need a very stable API
>between versions can use the API properties, those who are willing to
>take a bit more risk and do testing before upgrades to ensure their
>application still works can do so, and the developers can make the
>explicit decision to include things in the API as they become neccesary,
>rather than simply by guessing what makes sense ahead of time.
>
>Hopefully this helps to explain our policy such that it is reasonably
>understandable without causing too much difficulty.
>
>Best Regards,
>--
>Christopher Schmidt
>MetaCarta
From alexandre.gacon at gmail.com Tue Apr 8 11:13:23 2008
From: alexandre.gacon at gmail.com (Alexandre Gacon)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Javascript problem
Message-ID: <45f3b7570804080813k73d14682xdf99aa52561b564a@mail.gmail.com>
Skipped content of type multipart/alternative-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080408/dce246ff/google.html
From simone.gadenz at jrc.it Tue Apr 8 11:31:58 2008
From: simone.gadenz at jrc.it (Simone Gadenz)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Is onSelectFeature works only for the top layer?
Message-ID: <013601c8998d$af421080$0dc63180$@gadenz@jrc.it>
Hi all again!
I am experiencing some problems using multiple layer having attached popup
to the onSelectFeature method.
In fact I have a map showing georss feeds on top of a google layer and I
attached a popup to the georss elements using the onSelectFeature method.
Then I create the same structure for another layer that is supposed to be
the container for markers returned by a dynamyc a geocoding process. In
other words I ask the google geocoder to locate an address and then I plot a
marker into that layer in the returned position.
I have two problems:
- after the geocoder provies a couple of coordinate the setCenter function
is invoked to recenter the map and a new feature is added to the geocoded
points container but the other georss layer does not reposition
- clicking on the different features only the ones in the top layer open a
popup. To access the features in the layer below the upper lavel has to be
switched off.
Anybody is aving the same?
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080408/be477417/attachment.html
From bluecarto at gmail.com Tue Apr 8 11:32:57 2008
From: bluecarto at gmail.com (Pierre GIRAUD)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Javascript problem
In-Reply-To: <45f3b7570804080813k73d14682xdf99aa52561b564a@mail.gmail.com>
References: <45f3b7570804080813k73d14682xdf99aa52561b564a@mail.gmail.com>
Message-ID:
I took a quick look at your problem by trying to load the ViaMichelin
API beside OpenLayers (in lite.html example).
An error is raised in Events.js where OpenLayers tries to call push()
on an array.
But it seems that the ViaMichelin API modifies/extends the Array
prototype to provide a new "ci" function (bad! bad!).
This is a quick investigation and I have no workaround at the moment.
Regards,
Pierre
On Tue, Apr 8, 2008 at 5:13 PM, Alexandre Gacon
wrote:
> Hello,
>
> I am trying to develop a new Layer based on the service provided by
> ViaMichelin. My problem is the following : as soon as I include the
> reference to the JavaScript API of ViaMichelin (accessible via ), OpenLayers does
> not work anymore, even if I do not use my ViaMichelin Layer.
>
> I took the google example and just added the script line : the google
> example do not work anymore.
>
> If anyone has an idea, it would be great.
>
> Alexandre
>
>
>
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
From bluecarto at gmail.com Tue Apr 8 11:54:24 2008
From: bluecarto at gmail.com (Pierre GIRAUD)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Javascript problem
In-Reply-To:
References: <45f3b7570804080813k73d14682xdf99aa52561b564a@mail.gmail.com>
Message-ID:
Can you try the patch attached to the ticket I just opened for this issue ?
http://trac.openlayers.org/ticket/1502
Regards,
Pierre
On Tue, Apr 8, 2008 at 5:32 PM, Pierre GIRAUD wrote:
> I took a quick look at your problem by trying to load the ViaMichelin
> API beside OpenLayers (in lite.html example).
> An error is raised in Events.js where OpenLayers tries to call push()
> on an array.
>
> But it seems that the ViaMichelin API modifies/extends the Array
> prototype to provide a new "ci" function (bad! bad!).
>
> This is a quick investigation and I have no workaround at the moment.
>
> Regards,
> Pierre
>
>
>
>
> On Tue, Apr 8, 2008 at 5:13 PM, Alexandre Gacon
> wrote:
> > Hello,
> >
> > I am trying to develop a new Layer based on the service provided by
> > ViaMichelin. My problem is the following : as soon as I include the
> > reference to the JavaScript API of ViaMichelin (accessible via ), OpenLayers does
> > not work anymore, even if I do not use my ViaMichelin Layer.
> >
> > I took the google example and just added the script line : the google
> > example do not work anymore.
> >
> > If anyone has an idea, it would be great.
> >
> > Alexandre
> >
> >
> >
> > _______________________________________________
> > Users mailing list
> > Users@openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
> >
>
From crschmidt at metacarta.com Tue Apr 8 12:15:33 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Is onSelectFeature works only for the top
layer?
In-Reply-To: <013601c8998d$af421080$0dc63180$@gadenz@jrc.it>
References: <013601c8998d$af421080$0dc63180$@gadenz@jrc.it>
Message-ID: <20080408161533.GA27582@metacarta.com>
On Tue, Apr 08, 2008 at 05:31:58PM +0200, Simone Gadenz wrote:
> - clicking on the different features only the ones in the top layer open a
> popup. To access the features in the layer below the upper lavel has to be
> switched off.
This is a known behavior. There is no simple workaround at this time.
(SelectFeature only works for the top layer.)
Regards,
--
Christopher Schmidt
MetaCarta
From paulsmith at pobox.com Tue Apr 8 12:37:58 2008
From: paulsmith at pobox.com (Paul Smith)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] ALA article
Message-ID: <8c58fcec0804080937p63841f8cr1b48b60978e9c6b2@mail.gmail.com>
I've written an article for A List Apart about rolling your own web map
stack, featuring OpenLayers prominently:
http://www.alistapart.com/articles/takecontrolofyourmaps
Love to hear your feedback.
Cheers,
Paul.
--
Paul Smith
http://www.pauladamsmith.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080408/f11179b7/attachment.html
From woklist at kyngchaos.com Tue Apr 8 13:29:32 2008
From: woklist at kyngchaos.com (William Kyngesburye)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] FW: Where are the 2.5 API docs?????
In-Reply-To: <20080408113720.GB307@metacarta.com>
References:
<20080408113720.GB307@metacarta.com>
Message-ID:
Just getting started on OL myself, and I'm also a little confused on
documentation...
On Apr 8, 2008, at 6:37 AM, Christopher Schmidt wrote:
>
> Okay, so what should we do? What would be more helpful to you?
>
> My standard assumption is that anyone using OpenLayers seriously is
> going to download the code. With the code ships a full set of
> documentation in the 'doc' directory. If you read those, they are teh
> docs for the version you downloaded.
>
While the 2.5 download includes the docs, the 2.6rc1 download does not.
> Apparently this isn't the case.
>
If there is a documentation link on the OL site, people will use it,
and very possibly then ignore downloaded docs. I assumed also that
the docs link on the site was for v2.5, though I didn't run into any
problems, maybe because I'm doing simple stuff so far.
There is also the bonus online of the search feature. At least for
the unversioned link (v2.5 link doesn't have the search).
> Note that before a couple months ago, we didn't *have* versioned docs:
> this is an improvement in our process, which is constantly evolving.
> Although I understand that you are frustrated, there is only so much
> developer time that can be invested into things like this without
> negatively impacting active development of the project: doubly so
> because, at the moment, I'm one of two people with access to change
> things on the server.
As Barend says, the problem I see with any of the docs is that they
don't mention what version they are for. Fine if you look at the
downloaded docs, but not when viewed on the OL site. I think that's
fairly explicit about what needs changing: add visible version text to
the docs, and shouldn't take much time to do. How about in the upper-
left title text, which appears on all pages:
"
OpenLayers
JavaScript Mapping Library
version: [full version goes here]
"
Note: I couldn't find a direct link on the OL site to the v2.5 docs
you mentioned, or any other "versioned" docs.
-----
William Kyngesburye
http://www.kyngchaos.com/
The equator is so long, it could encircle the earth completely once.
From pedrosimonetti at gmail.com Tue Apr 8 13:39:49 2008
From: pedrosimonetti at gmail.com (Pedro Simonetti)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] geometry.getLength() returns what format
In-Reply-To:
References: <44b0bbf60709051200o1285b11bwb1863fcdabd730b7@mail.gmail.com>
<20070905193115.GA20066@metacarta.com>
<16543866.post@talk.nabble.com> <16547959.post@talk.nabble.com>
Message-ID: <16569053.post@talk.nabble.com>
Pierre GIRAUD wrote:
>
> The reason why you were advised not to use this code in a production
> environnement is probably because it comes from a sandbox.
> As you probably already know, sandboxes are there to let developers
> play with OpenLayers code and new features.
>
> That said, the considered code may still need work, or may be based on
> an old version of OpenLayers. It will therefore be somewhat difficult
> to upgrade to a new OpenLayers version (2.6 when it will be out for
> example) when you'll need to.
>
Thanks Pierre,
Actually, I'm using it in 2.6 RC1, and it's working well. And since this
feature is provided by a single external js file
(Openlayers/Control/Measure.js), I think that will be easy to put this as an
openlayers addin. There's no need to change other openlayers files, except
the "openlayers.js", where you need to add a single line to make this
feature loaded, like:
var jsfiles = new Array(
...
"OpenLayers/Control/Measure.js",
...
The only problem I found is that the measure tool is kinda slow in IE, but I
think this is a problem of IE rendering vectors. But, I'm fine, I don't see
this as a real problem.
I saw many people asking about this feature here at the forum, so I think
that will be great see this tool as an addin of the final 2.6.
regards,
Pedro Simonetti.
--
View this message in context: http://www.nabble.com/geometry.getLength%28%29-returns-what-format-tp12508821p16569053.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
From sindile.bidla at gmail.com Tue Apr 8 17:46:54 2008
From: sindile.bidla at gmail.com (Intengu Technologies)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] OSS application to serve file based images
Message-ID:
Hello
I understand that most experts are saying it is far better not to load
images in a database but rather to serve them from a file based system.
There are two commercial products that I know of ER Mapper - Image Web
Server and ArcGIS Image Server what OSS products provide comparable
functionalities. If these are available are there any bench mark studies
done and also I would like to integrate such products with ArcGIS Server.
--
Sindile Bidla
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080408/7f01b7e6/attachment.html
From brad at cubewerx.com.au Tue Apr 8 18:46:34 2008
From: brad at cubewerx.com.au (bradleyspencer)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] 2.6 problem with vectors in IE
In-Reply-To: <20080408113944.GC307@metacarta.com>
Message-ID:
Christopher,
Yes this fixed the problem - you guys always seem to be one step ahead!
Thanks for that.
Should I download the latest version of 2.6 to get this fix?
Cheers,
Brad Spencer
-----Original Message-----
From: Christopher Schmidt [mailto:crschmidt@metacarta.com]
Sent: Tuesday, 8 April 2008 9:40 PM
To: bradleyspencer
Cc: openlayers users
Subject: Re: [OpenLayers-Users] 2.6 problem with vectors in IE
On Tue, Apr 08, 2008 at 05:59:47PM +1000, bradleyspencer wrote:
> List,
>
> I have been using 2.6 because of a new feature I wanted. However, I have
> found that in IE when creating vectors (i.e. drawing of the edges of a
> mouse-Shift selection box in my case) they are always drawn in the top
left
> corner of the map Div.
Pretty sure this is #1477, which is fixed in trunk (and will soon be
released in RC2): can you try pointing to
http://dev.openlayers.org/nightly/OpenLayers.js and see if it's fixed?
Regards,
--
Christopher Schmidt
MetaCarta
From crschmidt at metacarta.com Tue Apr 8 18:48:59 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] 2.6 problem with vectors in IE
In-Reply-To:
References: <20080408113944.GC307@metacarta.com>
Message-ID: <20080408224858.GA7088@metacarta.com>
On Wed, Apr 09, 2008 at 08:46:34AM +1000, bradleyspencer wrote:
> Christopher,
>
> Yes this fixed the problem - you guys always seem to be one step ahead!
> Thanks for that.
>
> Should I download the latest version of 2.6 to get this fix?
No RC2 yet, subscribe to the dev list to find out when the next one is.
Regards,
--
Christopher Schmidt
MetaCarta
From pedrosimonetti at gmail.com Tue Apr 8 18:52:19 2008
From: pedrosimonetti at gmail.com (Pedro Simonetti)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Strange behaviour after panning
Message-ID: <16575710.post@talk.nabble.com>
Dear developers,
I'm trying to develop a query feature in my project, but I'm getting a
strange behaviour. I'm using 2 kaMap layers, one raster satellite image, and
one vector shape file.
Please visit:
http://189.52.176.118:8080/teste/?zoom=5&lat=7756661.87151&lon=364887.48481&layers=BT
Then click in the map inside the polygon named "Jardim da Penha". Note that
the query will result the right response, showing the text "Jardim da Penha"
in the lower right corner of the screen.
But, then, click and drag, moving the mouse to the right. And then click on
another polygon, for example, the named "Itarare". The result will be wrong.
Here I got "Jardim da Penha", but clicking in other areas you will got
different results.
It seems when you pan the map, it looses the correct coordinates. It's like
the "map.getLonLatFromLayerPx" still thinking it is in the same coordinates
that before panning.
What I'm doing wrong??
I have limited english skills, so if my message isn't clear enought, please
ask me about specific details.
I'm using the 2.6 RC1. I'm making the query through PHP mapscript.
NOTE: The images i'm using are very big, and my development server is kinda
slow. So, if the images don't load properly, please press F5, and they
should appear.
regards,
Pedro.
--
View this message in context: http://www.nabble.com/Strange-behaviour-after-panning-tp16575710p16575710.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
From john.frank at metacarta.com Tue Apr 8 20:47:03 2008
From: john.frank at metacarta.com (John R. Frank)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] DEM browsers in OpenLayers
Message-ID:
Has anyone seen a digital elevation model viewer (with data) freely
available on the Web? Perhaps using OpenLayers?
John
From bwoodall at bwoodall.org Tue Apr 8 20:53:11 2008
From: bwoodall at bwoodall.org (bwoodall)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] DEM browsers in OpenLayers
In-Reply-To:
References:
Message-ID: <1207702391.11412.60.camel@wardrobe.dhs.org>
Hi John,
I would imagine that you could use GDAL with
=> OL
....Bill,
On Tue, 2008-04-08 at 20:47 -0400, John R. Frank wrote:
> Has anyone seen a digital elevation model viewer (with data) freely
> available on the Web? Perhaps using OpenLayers?
>
> John
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
From brad at cubewerx.com.au Tue Apr 8 21:21:33 2008
From: brad at cubewerx.com.au (bradleyspencer)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] DEM browsers in OpenLayers
In-Reply-To:
Message-ID:
John,
If you just want a hillshading effect, GoogleMaps has an optional map called
'type: G_PHYSICAL_MAP' - I'm not sure how extensive this is across the
globe.
This looks good in a hilly area but is not very useful as a DEM with
geometry.
Hope that helps.
Cheers,
Brad Spencer
-----Original Message-----
From: users-bounces@openlayers.org [mailto:users-bounces@openlayers.org]On
Behalf Of John R. Frank
Sent: Wednesday, 9 April 2008 10:47 AM
To: users@openlayers.org
Subject: [OpenLayers-Users] DEM browsers in OpenLayers
Has anyone seen a digital elevation model viewer (with data) freely
available on the Web? Perhaps using OpenLayers?
John
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users
From pedrosimonetti at gmail.com Tue Apr 8 22:28:24 2008
From: pedrosimonetti at gmail.com (Pedro Simonetti)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Strange behaviour after panning
In-Reply-To: <16575710.post@talk.nabble.com>
References: <16575710.post@talk.nabble.com>
Message-ID: <16578138.post@talk.nabble.com>
After some investigations, I found how to fix it.
I've changed the piece of the code where it calculates the coordinates,
from:
var lonlat = map.getLonLatFromLayerPx(evt.xy);
To:
var lonlat = map.getLonLatFromViewPortPx(evt.xy);
Now it works fine.
I'm just wondering, what's the difference of "getLonLatFromLayerPx", and
"getLonLatFromViewPortPx"? I've looked at the docs but I still don't get it.
At first glance, I thought that these methods were similars.
my best regards,
Pedro Simonetti.
Pedro Simonetti wrote:
>
> Dear developers,
>
> I'm trying to develop a query feature in my project, but I'm getting a
> strange behaviour. I'm using 2 kaMap layers, one raster satellite image,
> and one vector shape file.
>
> Please visit:
>
> http://189.52.176.118:8080/teste/?zoom=5&lat=7756661.87151&lon=364887.48481&layers=BT
>
> Then click in the map inside the polygon named "Jardim da Penha". Note
> that the query will result the right response, showing the text "Jardim da
> Penha" in the lower right corner of the screen.
>
> But, then, click and drag, moving the mouse to the right. And then click
> on another polygon, for example, the named "Itarare". The result will be
> wrong. Here I got "Jardim da Penha", but clicking in other areas you will
> got different results.
>
> It seems when you pan the map, it looses the correct coordinates. It's
> like the "map.getLonLatFromLayerPx" still thinking it is in the same
> coordinates that before panning.
>
> What I'm doing wrong??
>
> I have limited english skills, so if my message isn't clear enought,
> please ask me about specific details.
>
> I'm using the 2.6 RC1. I'm making the query through PHP mapscript.
>
> NOTE: The images i'm using are very big, and my development server is
> kinda slow. So, if the images don't load properly, please press F5, and
> they should appear.
>
> regards,
>
> Pedro.
>
--
View this message in context: http://www.nabble.com/Strange-behaviour-after-panning-tp16575710p16578138.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
From linda.rawson at gmail.com Tue Apr 8 23:05:31 2008
From: linda.rawson at gmail.com (Linda Rawson)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Busy Cursor
Message-ID: <6e9b30fb0804082005q2fdd9a22t95e76c8aec72030a@mail.gmail.com>
I have two layers that when I switch between them the performance is
so bad that there is a noticeable delay. How would I implement an
hourglass cursor to indicate to the user that the application is
working and then put the cursor back to normal when the layer is
loaded.
--
Linda Rawson
From pedrosimonetti at gmail.com Tue Apr 8 23:21:11 2008
From: pedrosimonetti at gmail.com (Pedro Simonetti)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] OSS application to serve file based images
In-Reply-To:
References:
Message-ID: <16578588.post@talk.nabble.com>
Hey Sindile,
I'm just wondering here, why not using the free Mapserver?
regards,
Pedro.
intengu wrote:
>
> Hello
>
> I understand that most experts are saying it is far better not to load
> images in a database but rather to serve them from a file based system.
> There are two commercial products that I know of ER Mapper - Image Web
> Server and ArcGIS Image Server what OSS products provide comparable
> functionalities. If these are available are there any bench mark studies
> done and also I would like to integrate such products with ArcGIS Server.
>
> --
> Sindile Bidla
>
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
--
View this message in context: http://www.nabble.com/OSS-application-to-serve-file-based-images-tp16574471p16578588.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
From john.frank at metacarta.com Wed Apr 9 00:12:25 2008
From: john.frank at metacarta.com (John R. Frank)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] DEM browsers in OpenLayers
In-Reply-To:
References:
Message-ID:
> Has anyone seen a digital elevation model viewer (with data) freely
> available on the Web? Perhaps using OpenLayers?
I'm looking for an already operating tool that exposes the actual
elevation data -- maybe as a third dimension in the mouse coordinate
control.
Perhaps I should ask on geowanking.
John
From tara_athan at alt2is.com Wed Apr 9 03:09:56 2008
From: tara_athan at alt2is.com (Tara Athan)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] [work] Busy Cursor
In-Reply-To: <6e9b30fb0804082005q2fdd9a22t95e76c8aec72030a@mail.gmail.com>
References: <6e9b30fb0804082005q2fdd9a22t95e76c8aec72030a@mail.gmail.com>
Message-ID: <47FC6BC4.4070804@alt2is.com>
I am also interested in the answer to this question. I have some users
on dial-up so they have a delay for just about everything.
I have used the basic DOM commands
document.body.style.cursor = "wait";
document.body.style.cursor = "default";
for the initial map load, but don't know how to do this for a layer switch.
Tara
Linda Rawson wrote:
> I have two layers that when I switch between them the performance is
> so bad that there is a noticeable delay. How would I implement an
> hourglass cursor to indicate to the user that the application is
> working and then put the cursor back to normal when the layer is
> loaded.
>
>
From alexandre.gacon at gmail.com Wed Apr 9 03:12:29 2008
From: alexandre.gacon at gmail.com (Alexandre Gacon)
Date: Wed Sep 1 17:16:13 2010
Subject: [OpenLayers-Users] Javascript problem
In-Reply-To:
References: <45f3b7570804080813k73d14682xdf99aa52561b564a@mail.gmail.com>
Message-ID: <45f3b7570804090012v192f01d3re8bee964f9861f6e@mail.gmail.com>
Hello Pierre,
Your patch resolved my problem : now I can try to find why the pan is not
well handled for my layer.
Thank you !
Alexandre
On Tue, Apr 8, 2008 at 5:54 PM, Pierre GIRAUD wrote:
> Can you try the patch attached to the ticket I just opened for this issue
> ?
> http://trac.openlayers.org/ticket/1502
>
> Regards,
> Pierre
>
> On Tue, Apr 8, 2008 at 5:32 PM, Pierre GIRAUD wrote:
> > I took a quick look at your problem by trying to load the ViaMichelin
> > API beside OpenLayers (in lite.html example).
> > An error is raised in Events.js where OpenLayers tries to call push()
> > on an array.
> >
> > But it seems that the ViaMichelin API modifies/extends the Array
> > prototype to provide a new "ci" function (bad! bad!).
> >
> > This is a quick investigation and I have no workaround at the moment.
> >
> > Regards,
> > Pierre
> >
> >
> >
> >
> > On Tue, Apr 8, 2008 at 5:13 PM, Alexandre Gacon
> > wrote:
> > > Hello,
> > >
> > > I am trying to develop a new Layer based on the service provided by
> > > ViaMichelin. My problem is the following : as soon as I include the
> > > reference to the JavaScript API of ViaMichelin (accessible via
> ),
> OpenLayers does
> > > not work anymore, even if I do not use my ViaMichelin Layer.
> > >
> > > I took the google example and just added the script line : the google
> > > example do not work anymore.
> > >
> > > If anyone has an idea, it would be great.
> > >
> > > Alexandre
> > >
> > >
> > >
> > > _______________________________________________
> > > Users mailing list
> > > Users@openlayers.org
> > > http://openlayers.org/mailman/listinfo/users
> > >
> > >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080409/834cbed1/attachment.html
From bartvde at osgis.nl Wed Apr 9 03:32:58 2008
From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS))
Date: Wed Sep 1 17:16:14 2010
Subject: [OpenLayers-Users] Busy Cursor
Message-ID: <7306c67e0f63b6810650243d55bfd3a2@145.50.39.11>
Hi Linda,
you could have a look at the LoadingPanel Control. Something similar could
be done to change the map cursor.
See:
http://trac.openlayers.org/ticket/102
and:
http://trac.openlayers.org/browser/sandbox/bartvde/loadingpanel/lib/OpenLayers/Control/LoadingPanel.js
In maximizeControl you could set the busy mouse cursor on the map div, and
in minimizeControl change the cursor back.
example:
http://dev.openlayers.org/sandbox/bartvde/loadingpanel/examples/loadingpanel.html
Best regards,
Bart
--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl
--------- Oorspronkelijk bericht --------
Van: Linda Rawson
Naar: OpenLayers Users
Onderwerp: [OpenLayers-Users] Busy Cursor
Datum: 09/04/08 01:05
> I have two layers that when I switch between them the performance is
> so bad that there is a noticeable delay. How would I implement an
> hourglass cursor to indicate to the user that the application is
> working and then put the cursor back to normal when the layer is
> loaded.
>
> --
> Linda Rawson
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
From tara_athan at alt2is.com Wed Apr 9 03:35:37 2008
From: tara_athan at alt2is.com (Tara Athan)
Date: Wed Sep 1 17:16:14 2010
Subject: [OpenLayers-Users] OpenLayers Documentation mailing list?
In-Reply-To: <45f3b7570804090012v192f01d3re8bee964f9861f6e@mail.gmail.com>
References: <45f3b7570804080813k73d14682xdf99aa52561b564a@mail.gmail.com>
<45f3b7570804090012v192f01d3re8bee964f9861f6e@mail.gmail.com>
Message-ID: <47FC71C9.304@alt2is.com>
Where does the discussion for the OpenLayers Documentation Team occur? I
don't see a Documentation Mailing List on the website.
Tara
PS. I have changed the links on the wiki documentation page to point
towards the docs (api and dev) for 2.5. If the home page documentation
links (two of them) are changed to point to this wiki page, then this
would be the only one that needs to be updated when a new release comes
out, and then all neophyte OpenLayers users would be pointed to the
stable docs, even if they don't download the code. Sure wish I had
known about these links during the last year while I tried to understand
OpenLayers!
From bluecarto at gmail.com Wed Apr 9 03:44:27 2008
From: bluecarto at gmail.com (Pierre GIRAUD)
Date: Wed Sep 1 17:16:14 2010
Subject: [OpenLayers-Users] geometry.getLength() returns what format
In-Reply-To: <16569053.post@talk.nabble.com>
References: <44b0bbf60709051200o1285b11bwb1863fcdabd730b7@mail.gmail.com>
<20070905193115.GA20066@metacarta.com> <16543866.post@talk.nabble.com>
<16547959.post@talk.nabble.com>
<16569053.post@talk.nabble.com>
Message-ID:
>
> Actually, I'm using it in 2.6 RC1, and it's working well. And since this
> feature is provided by a single external js file
> (Openlayers/Control/Measure.js), I think that will be easy to put this as an
> openlayers addin. There's no need to change other openlayers files, except
> the "openlayers.js", where you need to add a single line to make this
> feature loaded, like:
>
> var jsfiles = new Array(
> ...
> "OpenLayers/Control/Measure.js",
> ...
>
Actually, you don't really need to add a new line in your OpenLayers.js file.
Adding a new link to your Measure.js would do the job.
That way you don't modified anything in OpenLayers.
Regards,
Pierre
From simone.gadenz at jrc.it Wed Apr 9 03:45:16 2008
From: simone.gadenz at jrc.it (Simone Gadenz)
Date: Wed Sep 1 17:16:14 2010
Subject: [OpenLayers-Users] Is onSelectFeature works only for the top
layer?
In-Reply-To: <20080408161533.GA27582@metacarta.com>
References: <013601c8998d$af421080$0dc63180$@gadenz@jrc.it>
<20080408161533.GA27582@metacarta.com>
Message-ID: <017f01c89a15$a6fc9160$f4f5b420$@gadenz@jrc.it>
Thanks.
Is this the same reason causing the lower georss layer to not reposition the
markers when the setCenter method is invoked?
-----Original Message-----
From: Christopher Schmidt [mailto:crschmidt@metacarta.com]
Sent: marted? 8 aprile 2008 18.16
To: Simone Gadenz
Cc: users@openlayers.org
Subject: Re: [OpenLayers-Users] Is onSelectFeature works only for the top
layer?
On Tue, Apr 08, 2008 at 05:31:58PM +0200, Simone Gadenz wrote:
> - clicking on the different features only the ones in the top layer open a
> popup. To access the features in the layer below the upper lavel has to be
> switched off.
This is a known behavior. There is no simple workaround at this time.
(SelectFeature only works for the top layer.)
Regards,
--
Christopher Schmidt
MetaCarta
From penyaskito at gmail.com Wed Apr 9 04:04:42 2008
From: penyaskito at gmail.com (=?UTF-8?Q?Christian_L=C3=B3pez_Esp=C3=ADnola?=)
Date: Wed Sep 1 17:16:14 2010
Subject: [OpenLayers-Users] OpenLayers Documentation mailing list?
In-Reply-To: <47FC71C9.304@alt2is.com>
References: <45f3b7570804080813k73d14682xdf99aa52561b564a@mail.gmail.com>
<45f3b7570804090012v192f01d3re8bee964f9861f6e@mail.gmail.com>
<47FC71C9.304@alt2is.com>
Message-ID:
Hi Tara,
On Wed, Apr 9, 2008 at 9:35 AM, Tara Athan wrote:
> Where does the discussion for the OpenLayers Documentation Team occur? I
> don't see a Documentation Mailing List on the website.
Discussion about documentation takes place on any of the channels that
we have, dev or users mailing list and/or the #openlayers IRC channel
at Freenode.
Because docs are written mainly by devs, it hasn't been necessary a
specific mailing list for documentators. I'm sure that if it's needed,
it will be done, but I don't feel that.
> PS. I have changed the links on the wiki documentation page to point
> towards the docs (api and dev) for 2.5. If the home page documentation
> links (two of them) are changed to point to this wiki page, then this
> would be the only one that needs to be updated when a new release comes
> out, and then all neophyte OpenLayers users would be pointed to the
> stable docs, even if they don't download the code. Sure wish I had
> known about these links during the last year while I tried to understand
> OpenLayers!
I modified it so it includes both now, the latest stable (2.5) and the
trunk version.
The problem now is that every time a release is done, we should change
it. I hope we can improve this process soon.
Thanks for your suggestions.
--
Regards,
Christian L?pez Esp?nola
From jjeudy at gi-paris.com Wed Apr 9 04:12:55 2008
From: jjeudy at gi-paris.com (Julien JEUDY)
Date: Wed Sep 1 17:16:14 2010
Subject: [OpenLayers-Users] [Feature style] Dashed border style
Message-ID: <20D1EFF28EBD434E9DFC82683BBEB2176D7239@intranet3>
Dear all,
I would like to modify the style of a feature to a dashed border style.
I try the following code, but it doesn't work. Can you please help me to
solve this problem?
Var my_style = {
strokeColor : ,
strokeWidth : 1,
fillColor : < blue >,
fillOpacity : 0.2,
borderStyle : < dashed >
}
...
feature.style = my_style
To complete my question: is it possible to have a filling lined
rendering?
Thanks,
Julien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080409/a589fdac/attachment.html
From bluecarto at gmail.com Wed Apr 9 05:14:58 2008
From: bluecarto at gmail.com (Pierre GIRAUD)
Date: Wed Sep 1 17:16:14 2010
Subject: [OpenLayers-Users] [Feature style] Dashed border style
In-Reply-To: <20D1EFF28EBD434E9DFC82683BBEB2176D7239@intranet3>
References: <20D1EFF28EBD434E9DFC82683BBEB2176D7239@intranet3>
Message-ID:
Unfortunately, I'm pretty sure that this is something OpenLayers will
never address.
The main reason is that OpenLayers vector renderers rely on SVG for
Firefox/Safari browsers and VML for InternetExplorer.
I had a look into it a while ago, and, as far as I know, none of those
browsers rendering engine support border styles (pattern).
As for Firefox, patterns are supported by SVG but Firefox doesn't
implement the patterns.
http://developer-stage.mozilla.org/en/docs/SVG_in_Firefox
Regards,
Pierre
On Wed, Apr 9, 2008 at 10:12 AM, Julien JEUDY wrote:
>
>
>
>
> Dear all,
>
>
>
> I would like to modify the style of a feature to a dashed border style. I
> try the following code, but it doesn't work. Can you please help me to solve
> this problem?
>
>
>
> Var my_style = {
>
> strokeColor : ?blue ?,
>
> strokeWidth : 1,
>
> fillColor : ? blue ?,
>
> fillOpacity : 0.2,
>
> borderStyle : ? dashed ?
>
> }
>
>
>
> ?
>
>
>
> feature.style = my_style
>
>
>
> To complete my question: is it possible to have a filling lined rendering?
>
>
>
> Thanks,
>
> Julien
>
>
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
From stefanzweig1881 at web.de Wed Apr 9 06:04:42 2008
From: stefanzweig1881 at web.de (Stefan Zweig)
Date: Wed Sep 1 17:16:14 2010
Subject: [OpenLayers-Users] parallel loading of tiles from same url
Message-ID: <563584839@web.de>
hi list,
i have the following problem:
i want to use the openlayers to display 2 wms layers, one as a baselayer and another one as a (semitransparent) overlay. during testing i noticed that, if i use different wms urls to load the wms images there is no problem with parallel loading of the tiles. but if both wms layers come from the same wms url the api begins to load *all* tiles of the baselayer and only after it has finished with loading all of them it starts loading the tiles for the overlay, which makes loading the map slower.
as i am not a too deep insider in the api code i am not sure where to adapt this.
i appreciate any advices. thanks in advance,
stefan
_______________________________________________________________
Schon geh?rt? Der neue WEB.DE MultiMessenger kann`s mit allen:
http://www.produkte.web.de/messenger/?did=3016
From bwoodall at bwoodall.org Wed Apr 9 06:50:56 2008
From: bwoodall at bwoodall.org (bwoodall)
Date: Wed Sep 1 17:16:14 2010
Subject: [OpenLayers-Users] DEM browsers in OpenLayers
In-Reply-To:
References:
Message-ID: <1207738256.11412.70.camel@wardrobe.dhs.org>
Well, I needed an excuse to play with the Control.Hover, which is the
basis for http://wardrobe.dhs.org/jrf/index.html. The code is rather
crude, but it works on Debian and FF (no performance features like
multi-urls or TC so the server might be slow ).
....Bill,
On Wed, 2008-04-09 at 00:12 -0400, John R. Frank wrote:
> > Has anyone seen a digital elevation model viewer (with data) freely
> > available on the Web? Perhaps using OpenLayers?
>
> I'm looking for an already operating tool that exposes the actual
> elevation data -- maybe as a third dimension in the mouse coordinate
> control.
>
> Perhaps I should ask on geowanking.
From crschmidt at metacarta.com Wed Apr 9 07:00:24 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:14 2010
Subject: [OpenLayers-Users] Is onSelectFeature works only for the top
layer?
In-Reply-To: <017f01c89a15$a6fc9160$f4f5b420$@gadenz@jrc.it>
References: <20080408161533.GA27582@metacarta.com>
<017f01c89a15$a6fc9160$f4f5b420$@gadenz@jrc.it>
Message-ID: <20080409110023.GA21948@metacarta.com>
On Wed, Apr 09, 2008 at 09:45:16AM +0200, Simone Gadenz wrote:
> Thanks.
>
> Is this the same reason causing the lower georss layer to not reposition the
> markers when the setCenter method is invoked?
No. I actually have no idea why that would happen: It makes no sense to
me.
Regards,
--
Christopher Schmidt
MetaCarta
From crschmidt at metacarta.com Wed Apr 9 07:06:55 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:14 2010
Subject: [OpenLayers-Users] Strange behaviour after panning
In-Reply-To: <16578138.post@talk.nabble.com>
References: <16575710.post@talk.nabble.com> <16578138.post@talk.nabble.com>
Message-ID: <20080409110655.GB21948@metacarta.com>
On Tue, Apr 08, 2008 at 07:28:24PM -0700, Pedro Simonetti wrote:
>
> After some investigations, I found how to fix it.
>
> I've changed the piece of the code where it calculates the coordinates,
> from:
>
> var lonlat = map.getLonLatFromLayerPx(evt.xy);
>
> To:
>
> var lonlat = map.getLonLatFromViewPortPx(evt.xy);
>
> Now it works fine.
>
> I'm just wondering, what's the difference of "getLonLatFromLayerPx", and
> "getLonLatFromViewPortPx"? I've looked at the docs but I still don't get it.
> At first glance, I thought that these methods were similars.
The answer is actually: "THey're the same insofar as you shouldn't need
to use either one of them" :)
Both of these are really designed to be internal methods: I've just
changed their definition from APIMethod to Method. The one you *shoul*
be using is the more nicely named getLonLatFromPixel: this hides the
fact that you have to worry about any of this stuff.
In reality, "FromLayerPx" is designed to work in the pixels of the
layer: the pixels of the layer are *not* shifted when you drag, but are
instead kept the same until you zoom (only the map container is shifted
when you drag). End result is that you'll be off until you zoom, if you
use the FromLayerPx.
In any case: We providedd getLonLatFromPixel as the main 'API' property
so that people wouldn't have to use a funky-named property: it's a
wrapper around getLonLatFromViewPortPx.
Regards,
--
Christopher Schmidt
MetaCarta
From crschmidt at metacarta.com Wed Apr 9 07:07:55 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:14 2010
Subject: [OpenLayers-Users] DEM browsers in OpenLayers
In-Reply-To: <1207738256.11412.70.camel@wardrobe.dhs.org>
References:
<1207738256.11412.70.camel@wardrobe.dhs.org>
Message-ID: <20080409110755.GC21948@metacarta.com>
On Wed, Apr 09, 2008 at 03:50:56AM -0700, bwoodall wrote:
> Well, I needed an excuse to play with the Control.Hover, which is the
> basis for http://wardrobe.dhs.org/jrf/index.html. The code is rather
> crude, but it works on Debian and FF (no performance features like
> multi-urls or TC so the server might be slow ).
bwoodal:
Awesome :) Suggestion: use untiled (and transitionEffect: 'resize') to
give it a shorter loading time for zooms/pans/etc.
Regards,
--
Christopher Schmidt
MetaCarta
From crschmidt at metacarta.com Wed Apr 9 07:12:13 2008
From: crschmidt at metacarta.com (Christopher Schmidt)
Date: Wed Sep 1 17:16:14 2010
Subject: [OpenLayers-Users] parallel loading of tiles from same url
In-Reply-To: <563584839@web.de>
References: <563584839@web.de>
Message-ID: <20080409111213.GE21948@metacarta.com>
On Wed, Apr 09, 2008 at 12:04:42PM +0200, Stefan Zweig wrote:
> hi list,
>
> i have the following problem:
>
> i want to use the openlayers to display 2 wms layers, one as a
> baselayer and another one as a (semitransparent) overlay. during
> testing i noticed that, if i use different wms urls to load the wms
> images there is no problem with parallel loading of the tiles. but if
> both wms layers come from the same wms url the api begins to load
> *all* tiles of the baselayer and only after it has finished with
> loading all of them it starts loading the tiles for the overlay, which
> makes loading the map slower.
You know what the doctor says:
If it hurts when you do that, don't do it!
The solution you had -- of loading from a different URL -- is the
recommended way to solve this problem. The only thing that matters is
the domain name: You can set up multiple DNS aliases pointing to the
same system to achieve the speed up. (Like tile.example.com,
overlay.example.com.)
In this way, you can use the same server, but load things in parallel.
I highly recommend this over trying to change the code: switching back
and forth between layers in an effort to load tiles would seriously
complicate things and make your life more difficult, and it would be
somewhat unlikely that we would integrate such a change into OpenLayers
unless it was really nicely done.
Regards,
--
Christopher Schmidt
MetaCarta
From David at itbeyond.com.au Wed Apr 9 07:37:11 2008
From: David at itbeyond.com.au (David Martin)
Date: Wed Sep 1 17:16:14 2010
Subject: [OpenLayers-Users] 2.5 Firefox and Framecloud autoSize
Message-ID: <9C37154DC7C8074FBC34214363755B7C1EB47D@ITB-SVR-01.itbeyond.local>
Hi,
I have been working today on FramedCloud and have noticed that is works perfectly in IE7 and not in FF2. It appears that when text wraps FF does not resize the box to the correct size. In fact even when it does not have test wrap the bottom line of text if FF2 is chopped off.
I have some running examples published at here:
http://www.exploroz.com/Directory/Categories/Campers_Trailers.aspx?kw=
The OL code is ? the way down. A copy of the registerPopup script is as follows
function registerPopUp() {
popup = new OpenLayers.Popup.FramedCloud("ppnt_place", PlacePos, new OpenLayers.Size(200,200), '
Camper Trailers WA
Unit 21 No.8 Booth Place, Balcatta, WA, 6021 View the full business details Get Driving Directions', null, true, onPopupClose);
popup.maxSize=new OpenLayers.Size(200,200);
ppnt.map.addPopup(popup);
}
This site is using nightly build however I have also tested in the latest trunk 6826 and the same issue with FF2 is showing.
Regards
David Martin
Managing Director
I.T. Beyond Pty Ltd
Postal:
PO BOX 967
HILLARYS WA 6923
Ph:
(08) 9403 3737
Mobile:
0417 677 275
Fax:
(08) 9403 3738
Skype:
itbeyond_david
________________________________
Check out our websites: www.ExplorOz.com and www.itbeyond.com.au
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080409/3ec3521e/attachment.html
From cmspinto at gmail.com Wed Apr 9 07:41:09 2008
From: cmspinto at gmail.com (Carlos Pinto)
Date: Wed Sep 1 17:16:14 2010
Subject: [OpenLayers-Users] Busy Cursor
In-Reply-To: <7306c67e0f63b6810650243d55bfd3a2@145.50.39.11>
References: <7306c67e0f63b6810650243d55bfd3a2@145.50.39.11>
Message-ID:
Hi all,
I am using the library ""
but I have seen this post and I thought that is really a good idea to put a
loading panel but when I had the line:
map.addControl( new OpenLayers.Control.LoadingPanel({minSize: new
OpenLayers.Size(600, 600)}) );
the map don't appear!!!!!!
Is it because of the openlayers version I am using?
Thanks
Carlos
On Wed, Apr 9, 2008 at 9:32 AM, Bart van den Eijnden (OSGIS) <
bartvde@osgis.nl> wrote:
> Hi Linda,
>
> you could have a look at the LoadingPanel Control. Something similar could
> be done to change the map cursor.
>
> See:
> http://trac.openlayers.org/ticket/102
>
> and:
>
> http://trac.openlayers.org/browser/sandbox/bartvde/loadingpanel/lib/OpenLayers/Control/LoadingPanel.js
>
> In maximizeControl you could set the busy mouse cursor on the map div, and
> in minimizeControl change the cursor back.
>
> example:
>
> http://dev.openlayers.org/sandbox/bartvde/loadingpanel/examples/loadingpanel.html
>
> Best regards,
> Bart
>
> --
> Bart van den Eijnden
> OSGIS, Open Source GIS
> http://www.osgis.nl
>
>
> --------- Oorspronkelijk bericht --------
> Van: Linda Rawson
> Naar: OpenLayers Users
> Onderwerp: [OpenLayers-Users] Busy Cursor
> Datum: 09/04/08 01:05
>
> > I have two layers that when I switch between them the performance is
> > so bad that there is a noticeable delay. How would I implement an
> > hourglass cursor to indicate to the user that the application is
> > working and then put the cursor back to normal when the layer is
> > loaded.
> >
> > --
> > Linda Rawson
> > _______________________________________________
> > Users mailing list
> > Users@openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
> >
>
>
>
> _______________________________________________
> Users mailing list
> Users@openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080409/b37f20ca/attachment.html
From bartvde at osgis.nl Wed Apr 9 07:48:54 2008
From: bartvde at osgis.nl (Bart van den Eijnden (OSGIS))
Date: Wed Sep 1 17:16:14 2010
Subject: [OpenLayers-Users] Busy Cursor
Message-ID:
Yes, it's not in the standard library, I am hoping it can be an addin soon.
See also the Wiki:
http://trac.openlayers.org/wiki/Addins/LoadingPanel
You can add the following in a