[OpenLayers-Users] Possible to override default ZoomBox control behavior...

2009-11-17 Thread Steve Lime
Hi all: I'm wondering if it's possible to override the basic behavior of the ZoomBox control to: - work normally if a box is drawn - implement a click handler if the user, well, clicks (as opposed to zooming) Or would creating a new control be necessary? Thanks! Steve ___

[OpenLayers-Users] Problem with zoom box with OL2.7/2.8 and IE 8

2009-10-22 Thread Steve Lime
Hi all: I'm seeing weird behavior with the standard zoom box navigation (shift-drag) with both OL 2.7 and 2.8 with IE 8. I'm sure it's CSS error on my end but it's not obvious to me. If you visit: http://www.dnr.state.mn.us/staging/steve/compass_test_ol27.html or http://www.dnr.state.mn.us/s

[OpenLayers-Users] Problem with zoom box with OL2.7/2.8 and IE 8

2009-10-22 Thread Steve Lime
Hi all: I'm seeing weird behavior with the standard zoom box navigation (shift-drag) with both OL 2.7 and 2.8 with IE 8. I'm sure it's CSS error on my end but it's not obvious to me. If you visit: http://www.dnr.state.mn.us/staging/steve/compass_test_ol27.html or http://www.dnr.state.mn.us/s

Re: [OpenLayers-Users] Mouse wheel zoom generates lots of server requests...

2009-07-22 Thread Steve Lime
Note this is the the resize transition effect. Without that only one request is generated... >>> Steve Lime 07/22/09 11:39 PM >>> Any comments? In more testing with untiled mapserver layers one wheel zoom generated up to 9 requests in the apache logs although only one

Re: [OpenLayers-Users] Mouse wheel zoom generates lots of server requests...

2009-07-22 Thread Steve Lime
Any comments? In more testing with untiled mapserver layers one wheel zoom generated up to 9 requests in the apache logs although only one map was ultimately displayed. Does this behavior vary by layer type? Steve >>> "Steve Lime" 07/16/09 4:29 PM >>> Hi all: I

[OpenLayers-Users] Mouse wheel zoom generates lots of server requests...

2009-07-16 Thread Steve Lime
Hi all: In testing we've noticed that zooming with a mouse wheel seems to generate lots of requests at various resolutions on the way to the final zoom level. So, a wheel up generates server requests at intermediate levels, most of which won't be displayed. Someone sitting there rolling their wh

Re: [OpenLayers-Users] Problems upgrading between 2.7 and 2.8...

2009-07-16 Thread Steve Lime
If you can't get it > to work, please report back. > > Best regards, > Bart > > Steve Lime wrote: >> Hi all: Just trying 2.8 with an app developed with 2.7 and have a problem > where the zoom box (shift-drag) and overview map rect aren't >> displayi

Re: [OpenLayers-Users] Problems upgrading between 2.7 and 2.8...

2009-07-16 Thread Steve Lime
That explains why I broke my 2.7 instance... Thanks. >>> On 7/16/2009 at 11:37 AM, in message <20090716163732.gk30...@metacarta.com>, Christopher Schmidt wrote: > On Thu, Jul 16, 2009 at 11:15:26AM -0500, Steve Lime wrote: >> Hi all: Just trying 2.8 with an app devel

Re: [OpenLayers-Users] Problems upgrading between 2.7 and 2.8...

2009-07-16 Thread Steve Lime
7/16/2009 at 11:15 AM, in message <4a5f0bce.5157.008...@dnr.state.mn.us>, "Steve Lime" wrote: > Hi all: Just trying 2.8 with an app developed with 2.7 and have a problem > where the zoom box (shift-drag) and overview map rect aren't > displaying (zoom works th

[OpenLayers-Users] Problems upgrading between 2.7 and 2.8...

2009-07-16 Thread Steve Lime
Hi all: Just trying 2.8 with an app developed with 2.7 and have a problem where the zoom box (shift-drag) and overview map rect aren't displaying (zoom works though). Figure it's a z-index issue. Any idea what might have changed between versions? App is: http://maps.dnr.state.mn.us/compass_tes

[OpenLayers-Users] Practical number of vector features...

2009-01-23 Thread Steve Lime
Hi all: Are there any guidelines for the number of vector features that OL 2.7 can handle? I'm feeding is 450 point features as GeoJSON and IE 7 in particular takes forever (ok, just a minute or so) to render the interface. Firefox 2 is quicker but is jerky with pan and box zooms. If I make the G

Re: [OpenLayers-Users] Zindex problem with Firefox 3...

2008-07-29 Thread Steve Lime
For completeness, I added the following to theme/default/style.css div.olMapViewport { z-index: 0; } and that seemed to do the trick. It fixed the main map and overview map stacking... Thanks for the help! Steve >>> On 7/28/2008 at 5:27 PM, in message <[EMAIL PROTECTED]>, "Erik Uzureau" <

[OpenLayers-Users] Zindex problem with Firefox 3...

2008-07-28 Thread Steve Lime
Hi all: I'm curious if anyone else has run into zindex/stacking issues with OL and Firefox 3. I have an app that works fine with Firefox 2.x but there seems to be a stacking issue with Firefox 3. Basically the map covers up all other controls placed atop the base div. Most are custom so it's pro

Re: [OpenLayers-Users] Weird IE offset problem with vector layer... SOLVED

2008-07-02 Thread Steve Lime
It turns out the table cell holding the map div had align=center and that was enough to throw things out of whack in IE. I updated my test case to show the problem just in case anyone thinks this is a bug in OL and not just a quirk in IE. Steve >>> "Steve Lime" <[EMAIL P

[OpenLayers-Users] Weird IE offset problem with vector layer...

2008-07-01 Thread Steve Lime
Hi folks: I'm converting an older application that uses table layouts to OL (v. 2.6) and have everything working nicely except for an issue with a vector layer. I've setup a simple measure function using the draw feature control. In IE however the feature is offset in the x direction from the ac

[OpenLayers-Users] Couple of DrawFeature control question

2008-06-02 Thread Steve Lime
Hi all: Is it possible to clear the current set of features in a vector layer before adding a new one? Basically I want the user to be able to define only one rectangle or polygon. I figured I could simply intervene in the mousedown event and clear the vector layer but I can't get that event to

Re: [OpenLayers-Users] Sample OL site...

2008-04-17 Thread Steve Lime
Sure, no problem. You can find it at: http://maps.dnr.state.mn.us/compass/compass_sample.map Things to note: - I use includes heavily so this file is the result of serializing a much simpler map file which is why you'll see scientific notation for some numbers and particularly verbose lay

Re: [OpenLayers-Users] Sample OL site...

2008-04-16 Thread Steve Lime
Christopher Schmidt <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 03:36:59PM -0500, Steve Lime wrote: >> Hi all: Figured I'd share an OL powered site we've got going. >> >> http://www.dnr.state.mn.us/maps/compass.html >> >> It

[OpenLayers-Users] Sample OL site...

2008-04-16 Thread Steve Lime
Hi all: Figured I'd share an OL powered site we've got going. http://www.dnr.state.mn.us/maps/compass.html It's a simple viewer but OL was perfect for this type of thing for us. It's using: - OpenLayers 2.5 - MapServer 5.1 (development version, AGG backend) - TileCache 2 (mod_python, W

Re: [OpenLayers-Users] OpenLayers equivalent of ka-map pause event?

2008-01-03 Thread Steve Lime
; Cheers, > > Mike Quentel > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On Behalf Of Steve Lime > Sent: Wednesday, 19 December 2007 16:12 > To: Eric Lemoine > Cc: users@openlayers.org > Subject: Re: [OpenLayers-Users]

Re: [OpenLayers-Users] Any examples using Proj4js and OpenLayers.Projection class?

2008-01-02 Thread Steve Lime
vent re-transforming the last point of polygons which in OL is a copy of the first point). That's probably not the best place for that check, but if you comment out the return statement at line 93 or so the inverse transform also works correctly. Mike Steve Lime wrote: > Mike: I wa

Re: [OpenLayers-Users] Any examples using Proj4js and OpenLayers.Projection class?

2007-12-28 Thread Steve Lime
t; https://svn.codehaus.org/mapbuilder/cscs/trunk/proj4js/lib and use the > file proj4js-compressed.js (or proj4js-combined.js if you want to debug > what's going on inside). Compressed and combined versions of proj4js > include all files required. > > Let me know if that wo

Re: [OpenLayers-Users] Any examples using Proj4js and OpenLayers.Projection class?

2007-12-20 Thread Steve Lime
Great, that explains the output I'm seeing, now to get the right numbers. Thanks Chris (and Mike)... Steve >>> On 12/20/2007 at 9:26 AM, in message <[EMAIL PROTECTED]>, Christopher Schmidt <[EMAIL PROTECTED]> wrote: > On Thu, Dec 20, 2007 at 02:47:42AM -0600, Ste

[OpenLayers-Users] Any examples using Proj4js and OpenLayers.Projection class?

2007-12-20 Thread Steve Lime
I'm working with openlayers trunk trying to get some point projection to work. Code like this: map = new OpenLayers.Map( $('map'), {maxExtent: new OpenLayers.Bounds(-2668252.00,-2707008.50,2813685.00,2774928.50), maxResolution:

Re: [OpenLayers-Users] OpenLayers equivalent of ka-map pause event?

2007-12-19 Thread Steve Lime
with OpenLayers clients I'm working on. Steve >>> On 12/19/2007 at 2:47 PM, in message <[EMAIL PROTECTED]>, "Eric Lemoine" <[EMAIL PROTECTED]> wrote: > On Dec 19, 2007 9:37 PM, Steve Lime <[EMAIL PROTECTED]> wrote: >> Folks familiar with ka-map

[OpenLayers-Users] OpenLayers equivalent of ka-map pause event?

2007-12-19 Thread Steve Lime
Folks familiar with ka-map might also be familiar with a mouse pause event that has proven to be really useful (for me anyway). I fires if the mouse has been stationary a certain amount of time. I grep'd the source but didn't find anything obvious. Does anything like it exist? Thanks. Steve _

Re: [OpenLayers-Users] Theme question...

2007-11-29 Thread Steve Lime
;d set theme like this then. Now that I understand I can work with it easily. Thanks again Tim. Steve >>> Tim Schaub <[EMAIL PROTECTED]> 11/29/07 5:41 PM >>> Hey- Steve Lime wrote: > Hi all: Question about a map's theme. My assumption is that one could use >

Re: [OpenLayers-Users] OT: Event propagation problem...

2007-11-29 Thread Steve Lime
MAIL PROTECTED]> 11/29/07 6:02 PM >>> Hey- Steve Lime wrote: > What I ended up with is a div that covers the map and then I did something > like: > > var elem = document.getElementById('myDiv'); > elem.addEventListener( 'click', stopPropagation, f

[OpenLayers-Users] Theme question...

2007-11-29 Thread Steve Lime
Hi all: Question about a map's theme. My assumption is that one could use that mechanism to override the default (blue) styling of OpenLayers. Yet, when I do so I'm seeing (via firebug) both my theme's style.css and the default style.css being loaded and as a result the custom styles don't get ap

Re: [OpenLayers-Users] OT: Event propagation problem...

2007-11-29 Thread Steve Lime
tion(type, evt) { > if (this.idle) return; > this.originalTriggerEvent(type, evt); > }; > > It's ugly, and it may get me into real trouble, some time in the future, but > it works. > > If I set map.events.idle = true, no events fire a

Re: [OpenLayers-Users] OT: Event propagation problem...

2007-11-29 Thread Steve Lime
In case anyone cares the solution was easy, just register all the mouse events for the overlayed div with a simple callback that stops propagation. Steve >>> On 11/28/2007 at 11:58 PM, in message <[EMAIL PROTECTED]>, "Steve Lime" <[EMAIL PROTECTED]> wrote: > T

Re: [OpenLayers-Users] OT: Event propagation problem...

2007-11-28 Thread Steve Lime
That's what I figured. Would make a nice control - an html panel. Steve >>> "Eric Lemoine" <[EMAIL PROTECTED]> 11/28/07 11:39 PM >>> On Nov 28, 2007 11:56 PM, Steve Lime <[EMAIL PROTECTED]> wrote: > Hi all: Slightly off-topic question. I'm

Re: [OpenLayers-Users] OT: Event propagation problem...

2007-11-28 Thread Steve Lime
e: > Do you want the map to not respond to clicks on your help or legend div? > > If so, you'll need to define event handlers, the way Popups do. > > Or do you want the map to not respond at all, while your help or legend is > visible? > > > -----Original Message

[OpenLayers-Users] OT: Event propagation problem...

2007-11-28 Thread Steve Lime
Hi all: Slightly off-topic question. I'm working on an interface that plops help and legend content over the top of an OpenLayers map. Problem is that mouse events continue to propagate through the help or legend content to OpenLayers. Anyone aware of an easy way to stop that or do I need to go a

Re: [OpenLayers-Users] Toolbar alternatives

2007-11-28 Thread Steve Lime
n Source GIS > http://www.osgis.nl > > > - Oorspronkelijk bericht > Van: Christopher Schmidt <[EMAIL PROTECTED]> > Naar: Steve Lime <[EMAIL PROTECTED]> > Cc: users@openlayers.org > Onderwerp: Re: [OpenLayers-Users] Toolbar alternatives > Datum:

[OpenLayers-Users] Toolbar alternatives

2007-11-27 Thread Steve Lime
Greetings: Has anyone developed alternatives to the basic toolbar controls that are part of OpenLayers? I'm interested in 2 or 3 state tools, being able to enable/disable tools, context sensitive help (e.g. "use this to ..."), being able to easily swap icon sets. Stuff like that. Or can the Pan

Re: [OpenLayers-Users] MapServer to OpenLayers line rendition

2007-10-10 Thread Steve Lime
Looking back at the original email Aileen sent there was a reference to this layer creation code: var myqry = new OpenLayers.Layer.MapServer.Untiled("Map", "/cgi-bin/mapserv?", {map: '/home/to/my/map.map', layer:'#qrylayer#', map_#qrylayer#:'classitem+#qryitem#+expression+#q.code#', format: '

Re: [OpenLayers-Users] MapServer to OpenLayers line rendition

2007-10-05 Thread Steve Lime
Aileen: I'm assuming you're bumping your head against the URL configuration changes that were made in 5.0. Virtually anything you could do in 4.10 is doable in 5.0 but the mechanism may have changed. Can you pass along the URLs that are actually being sent to MapServer? If so, then I can tell yo

Re: [OpenLayers-Users] Lables for Polygons in OpenLayers

2007-07-27 Thread Steve Lime
The MINDISTANCE parameter is only useful within a tile so that's why you continue to see duplicates. One labeling process doesn't know about the other. One solution would be to use a smarter tiling engine than simply WMS. I believe both TileCache and ka-map both support the concept of metatiles