[OpenLayers-Users] Default appearance of map controls

2010-08-06 Thread Jeff Dege
When you put a control on a map, OpenLayers builds a rather cryptic classid for it based on the class name. You can supply your own replacement for part of it, but OpenLayers appends ItemActive or ItemInactive to the class, depending upon the state of the control. This class is used to select

[OpenLayers-Users] An interesting little artifact

2010-04-27 Thread Jeff Dege
When I display an OpenLayers map, with a MousePosition control in an external div, when I destroy the map, the external div is not cleared. The div into which the map is displayed is cleared, and I see the background color it had before the map was opened, but the external div into which the Mo

[OpenLayers-Users] Suggestion for hosting platform?

2010-04-15 Thread Jeff Dege
I'm building a site that involves a couple of editable vector layers drawn on top of a landbase. In development, I've been working with a publicly accessible WMS, but that won't fly for our production system. I need more control of what features will be displayed at which resolutions. So I ne

[OpenLayers-Users] Vector labels at different zoom levels

2010-04-12 Thread Jeff Dege
I'm adding some attributes to the GML data I'm using to draw a vector layer, and have set the label member of the style object to display those attributes. It works fine, except that it looks lousy when I zoom out. The labels are still drawn the same, even though the features may be nearly invi

[OpenLayers-Users] Numeric Feature attribute values in style.label

2010-04-09 Thread Jeff Dege
I'm passing GML features to a Vector layer. I need to put the feature name in a label. Some of my features have numeric names, for which the leading zeros are significant. My problem: the leading zeros are being stripped. I've tracked this down to OpenLayers.Style.createLiteral(), which chec

Re: [OpenLayers-Users] Does Control.ModifyFeature not work with Geometry.MultiPolygon?

2010-04-09 Thread Jeff Dege
@openlayers.org [mailto:users-boun...@openlayers.org] On Behalf Of Jeff Dege Sent: Thursday, April 08, 2010 5:54 PM To: users@openlayers.org Subject: [OpenLayers-Users] Does Control.ModifyFeature not work with Geometry.MultiPolygon? I've been putting together a site around a Layer.Vector, and in

[OpenLayers-Users] Does Control.ModifyFeature not work with Geometry.MultiPolygon?

2010-04-08 Thread Jeff Dege
I've been putting together a site around a Layer.Vector, and in the early versions Control.ModifyFeature worked just fine. But in those versions, I was working with polygons I created with Control.DrawFeature. In my latest versions, I'm rendering GML into the layer with Format.GML, and now Mo

Re: [OpenLayers-Users] Different types of polygons?

2010-04-06 Thread Jeff Dege
the rest of the system working, I may revisit my derived class solution. Thanks. From: Pierre Giraud [mailto:pierre.gir...@camptocamp.com] Sent: Tuesday, April 06, 2010 9:36 AM To: Jeff Dege Cc: users@openlayers.org Subject: Re: [OpenLayers-Users] Different types of polygons? Relying on events

Re: [OpenLayers-Users] Different types of polygons?

2010-04-06 Thread Jeff Dege
it seems a bit kludgy, and is likely to break if a future version of OpenLayers makes changes to how DrawFeature.drawFeature() works. So I was wondering if there was a better way to do it. From: Pierre Giraud [mailto:pierre.gir...@camptocamp.com] Sent: Tuesday, April 06, 2010 2:46 AM To: Jeff

[OpenLayers-Users] Different types of polygons?

2010-04-05 Thread Jeff Dege
I find myself needing to draw two different kinds of polygons on a Vector layer. First, they need to have different colors, and second, they need to be processed differently when they are complete. I'm currently working on the first problem, and am playing around with two DrawFeature controls.

[OpenLayers-Users] Strategy/Save and Protocol/???

2010-03-30 Thread Jeff Dege
A few years back (OpenLayers 2.5) I built a site that allowed the users to create, update, and delete geometric features, using OpenLayers.Layer.Vector, using it's preFeatureInsert and onFeatureInsert hooks to save data on the server via ASP.NET's asynchronous callbacks. Geometries were communi

[OpenLayers-Users] Question regarding maxResolution

2010-03-24 Thread Jeff Dege
I'm playing around with OpenLayers again, after a pause of a year or so. I'm trying to see what I can do with the commercial service layers. Working in 2.8: I'm looking at two examples, one is the map on the homepage: http://openlayers.org/ This map is constructed with the following call:

[OpenLayers-Users] IMAGE_RELOAD_ATTEMPTS in 2.5?

2008-03-06 Thread Jeff Dege
Has IMAGE_RELOAD_ATTEMPTS stopped working in 2.5? I used to regularly have problems with missing tiles. This went away when IMAGE_RELOAD_ATTEMPTS was introduced in 2.3. Now, running against 2.5, I'm seeing them again. As the tiles draw, a few show up with red-x. I've always seen that. B

Re: [OpenLayers-Users] layer.maxResolution and LayerSwitcher

2008-03-03 Thread Jeff Dege
-0600, Jeff Dege wrote: > I have a layer I'm turning off at certain zoomlevels, by setting > maxResolution and/or minResolution. > > At zoomlelelels where it's not being drawn, it still shows up in the > layerSwitcher, with no title and a disabled checkbox. > > Is thi

Re: [OpenLayers-Users] layer.maxResolution and LayerSwitcher

2008-03-03 Thread Jeff Dege
On Monday, March 03, 2008 5:03 PM, Jeff Dege wrote: > > I have a layer I'm turning off at certain zoomlevels, by setting maxResolution and/or minResolution. > > At zoomlelelels where it's not being drawn, it still shows up in the layerSwitcher, with no title and a disabl

[OpenLayers-Users] layer.maxResolution and LayerSwitcher

2008-03-03 Thread Jeff Dege
I have a layer I'm turning off at certain zoomlevels, by setting maxResolution and/or minResolution. At zoomlelelels where it's not being drawn, it still shows up in the layerSwitcher, with no title and a disabled checkbox. Is this intended behavior? _

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

2007-11-29 Thread Jeff Dege
}; 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 at all. -Original Message- From: Steve Lime [mailto:[EMAIL PROTECTED] Sent: Wed 11/28/2007 5:12 PM To: Jeff Dege; users@openlayers.

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

2007-11-28 Thread Jeff Dege
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- From: [EMAIL PROTECTED] on behalf of Steve Lim

Re: [OpenLayers-Users] How do I unselect a feature?

2007-11-16 Thread Jeff Dege
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Tim Schaub > Sent: Friday, November 16, 2007 11:37 AM > Cc: users@openlayers.org > Subject: Re: [OpenLayers-Users] How do I unselect a feature? > > Hey- > > Jeff Dege wr

Re: [OpenLayers-Users] How do I unselect a feature?

2007-11-15 Thread Jeff Dege
> -Original Message- > From: Eric Lemoine [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 13, 2007 12:39 PM > To: Jeff Dege > Cc: users@openlayers.org > Subject: Re: [OpenLayers-Users] How do I unselect a feature? > > On Nov 13, 2007 6:19 PM, Jeff Dege &

Re: [OpenLayers-Users] How do I unselect a feature?

2007-11-13 Thread Jeff Dege
Why did I never try that? Thanks. > -Original Message- > From: Eric Lemoine [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 13, 2007 12:39 PM > To: Jeff Dege > Cc: users@openlayers.org > Subject: Re: [OpenLayers-Users] How do I unselect a feature? > > On No

[OpenLayers-Users] How do I unselect a feature?

2007-11-13 Thread Jeff Dege
I have a vector layer displayed, with a number of features visible. I have a select control active, so when I click on a feature, it becomes selected. If I click on another feature, the new feature becomes selected, and the feature that was selected becomes unselected. How do I unselect a featur

Re: [OpenLayers-Users] Handler.Keyboard in IE?

2007-11-09 Thread Jeff Dege
Thanks. > -Original Message- > From: Christopher Schmidt [mailto:[EMAIL PROTECTED] > Sent: Friday, November 09, 2007 4:19 PM > To: Jeff Dege > Cc: users@openlayers.org > Subject: Re: [OpenLayers-Users] Handler.Keyboard in IE? > > On Fri, Nov 09, 2007 at 04:

[OpenLayers-Users] Handler.Keyboard in IE?

2007-11-09 Thread Jeff Dege
I'm taking a first look at Control.ModifyFeature, in 2.5, and the delete key doesn't work in IE. Works fine in Firefox, but in both IE6 and IE7, ModifyFeature.handleKeypress() is never called at all. On exploring a bit, it seems that Handler.Keyboard.handleKeyEvent() is never being called. I'm r

Re: [OpenLayers-Users] layer.div is null?

2007-11-01 Thread Jeff Dege
ginal Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Dege > Sent: Monday, October 29, 2007 4:57 PM > To: users@openlayers.org > Subject: [OpenLayers-Users] layer.div is null? > > I'm getting occassional, unreproducable errors, in Map.destro

[OpenLayers-Users] layer.div is null?

2007-10-29 Thread Jeff Dege
I'm getting occassional, unreproducable errors, in Map.destroy(). This is in 2.3-rc3 Among other things, Map.destroy() loops through all the controls that have been added to the map, and calls destroy() on each. Control.destroy() looks through all the handlers that have been set for the control,

Re: [OpenLayers-Users] OpenLayers Proxying in IIS

2007-10-15 Thread Jeff Dege
&service=wms&request=Ge tCapabilities For your site, it would be something like: http://username:[EMAIL PROTECTED]/gexservlets/wms?version= 1.1.1&service=wms&request=GetCapabilities > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Se

Re: [OpenLayers-Users] OpenLayers Proxying in IIS

2007-10-05 Thread Jeff Dege
. > -Original Message- > From: John Cole [mailto:[EMAIL PROTECTED] > Sent: Friday, October 05, 2007 10:56 AM > To: Jeff Dege; users@openlayers.org > Subject: RE: [OpenLayers-Users] OpenLayers Proxying in IIS > > Search the mailing list, I posted a WFS proxy in asp.net a

[OpenLayers-Users] OpenLayers Proxying in IIS

2007-10-05 Thread Jeff Dege
OpenLayers uses AJAX, and AJAX has a problem with cross-domain http requests. So OpenLayers has a mechanism by which a proxy prefix can be prepended to every request, directing the request to a proxy site on the host domain. The issue has always been how to set up such a proxy site. If your webs

[OpenLayers-Users] Controls and sessionState in ASP.NET

2007-09-21 Thread Jeff Dege
I'm serving pages containing maps with IIS and ASP.NET 2.0. The pages, once they load in the browser, have always worked fine. Javascript in the browser is javascript in the browser, how the server built the pages doesn't much matter. Until it does. I was making changes in the web.config file,

Re: [OpenLayers-Users] Tooltips for Editing Tools

2007-08-27 Thread Jeff Dege
On Monday, August 27, 2007 2:37 AM, Pierre GIRAUD wrote: > > On 8/27/07, Chris Hardin <[EMAIL PROTECTED]> wrote: > > Anyone know how to get tooltip hoovers for the Editing tools?? > > This has already been discussed and it will probably be implemented > but not untill the 2.6 release. > > http://

Re: [OpenLayers-Users] document.createElementNS on IE

2007-08-14 Thread Jeff Dege
On Tuesday, August 14, 2007 2:47 PM, Tim Schaub wrote: > > Jeff Dege wrote: > > > > This doesn't look like it's been through even the most cursory unit > > test. In fact, it look like it's half-way through a restructuring. > > > > But tha

Re: [OpenLayers-Users] document.createElementNS on IE

2007-08-14 Thread Jeff Dege
On Tuesday, August 14, 2007 at 1:39 PM Christopher Schmidt wrote: > > On Tue, Aug 14, 2007 at 01:31:55PM -0500, Jeff Dege wrote: > > I'm still seeing a lot of calls to document.createElementNS() in > > /tschaub/feature. > > Right you are. Copy paste failed me. > h

Re: [OpenLayers-Users] document.createElementNS on IE

2007-08-14 Thread Jeff Dege
y, August 14, 2007 12:00 PM > To: Jeff Dege > Cc: users@openlayers.org > Subject: Re: [OpenLayers-Users] document.createElementNS on IE > > On Tue, Aug 14, 2007 at 11:30:31AM -0500, Jeff Dege wrote: > > Is there a way of converting a Vector.Feature to a GML > string that wi

[OpenLayers-Users] document.createElementNS on IE

2007-08-14 Thread Jeff Dege
I'm trying to convert a newly-inserted Vector feature into a GML string. What I'm trying so far: function editLayer_onFeatureInsert(feature) { var g = new OpenLayers.Format.GML(); var x = g.createFeatureXML(feature); var s = g.read([x]); } I'm not entirely sure this is the righ

Re: [OpenLayers-Users] Toggling vector layers?

2007-08-13 Thread Jeff Dege
before you call Layer.setVisibility(). Layer.setVisibility() will throw a changelayer event, which will cause the layer switcher to update it's layer list. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Dege > Sent: Monda

[OpenLayers-Users] Toggling vector layers?

2007-08-13 Thread Jeff Dege
I've a problem where I need to be able to toggle a vector layer on and off. I'd originally thought about adding and removing a vector layer, but the panel edit controls need to have the layer existing when they are constructed, and there's no method for removing controls from a panel, so I thought

Re: [OpenLayers-Users] Stopping map events

2007-08-01 Thread Jeff Dege
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > Erik Uzureau > Sent: Tuesday, July 31, 2007 5:48 PM > To: Jeff Dege > Cc: users@openlayers.org > Subject: Re: [OpenLayers-Users] Stopping map events > > On 7/31/07, Jeff Dege <[EMAIL PROTECTED]> w

[OpenLayers-Users] Stopping map events

2007-07-31 Thread Jeff Dege
I have a div that is being drawn on top of the map. Clicks in this div are being interpreted as clicks on the map. Is there a way of either keeping clicks in this div from reaching the map, or of temporarily stopping event handling by the map, while the div is in place? __

Re: [OpenLayers-Users] OverviewMap - outside div?

2007-07-25 Thread Jeff Dege
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Tim Schaub > Sent: Wednesday, July 25, 2007 3:42 PM > To: users@openlayers.org > Subject: Re: [OpenLayers-Users] OverviewMap - outside div? > > Jeff Dege wrote: > > But one thing I've noticed. >

Re: [OpenLayers-Users] OverviewMap - outside div?

2007-07-25 Thread Jeff Dege
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Tim Schaub > Sent: Wednesday, July 25, 2007 2:43 PM > Cc: users@openlayers.org > Subject: Re: [OpenLayers-Users] OverviewMap - bad coords? > > Jeff Dege wrote: > > Now I seem to remember having had a si

Re: [OpenLayers-Users] OverviewMap - bad coords?

2007-07-25 Thread Jeff Dege
rking. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Dege > Sent: Wednesday, July 25, 2007 2:08 PM > To: users@openlayers.org > Subject: Re: [OpenLayers-Users] OverviewMap - bad coords? > > On doing some websearching, I found c

Re: [OpenLayers-Users] OverviewMap - bad coords?

2007-07-25 Thread Jeff Dege
e- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Dege > Sent: Wednesday, July 25, 2007 1:51 PM > To: users@openlayers.org > Subject: [OpenLayers-Users] OverviewMap - bad coords? > > I'm trying to add the OverviewMap control to a map built

[OpenLayers-Users] OverviewMap - bad coords?

2007-07-25 Thread Jeff Dege
I'm trying to add the OverviewMap control to a map built with KaMap layers. I'm using OL version 2.4. The example - examples\overviewmap.html - works perfectly. Mine doesn't work at all. When the OverviewMap control requests tiles from KaMap, the tiles are generated correctly - or at least they

Re: [OpenLayers-Users] New INI in stage

2007-07-25 Thread Jeff Dege
ing openlayers, so as to avoid this? Didn't think so ;) > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > Erik Uzureau > Sent: Wednesday, July 25, 2007 9:43 AM > To: Jeff Dege > Subject: Re: [OpenLayers-Users] New INI in stage >

[OpenLayers-Users] New INI in stage

2007-07-25 Thread Jeff Dege
There's a new adlshost.ini file in stage - changing the mapping URLs to point to Flanders ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users

Re: [OpenLayers-Users] Problem with GML coordinates?

2007-07-16 Thread Jeff Dege
> -Original Message- > From: Christopher Schmidt [mailto:[EMAIL PROTECTED] > Sent: Monday, July 16, 2007 5:42 PM > To: Jeff Dege > Cc: openlayers user list; [EMAIL PROTECTED] > Subject: Re: [OpenLayers-Users] Problem with GML coordinates? > > On Mon, Jul 16,

Re: [OpenLayers-Users] Problem with GML coordinates?

2007-07-16 Thread Jeff Dege
> -Original Message- > From: Christopher Schmidt [mailto:[EMAIL PROTECTED] > Sent: Monday, July 16, 2007 4:53 PM > To: Jeff Dege > Subject: Re: [OpenLayers-Users] Problem with GML coordinates? > > On Mon, Jul 16, 2007 at 04:47:27PM -0500, Jeff Dege wrote: > &g

[OpenLayers-Users] Problem with GML coordinates?

2007-07-16 Thread Jeff Dege
I've been working with the OpenLayers.Layer.GML, and things have been working, mostly. I've been working with the default EPSG:4326 projection, but my users don't like the looks of it. (Decimal degrees are stretched, left-to-right.) So I've been trying to convert things to EPSG:102004. My origi

Re: [OpenLayers-Users] Augmenting a method?

2007-07-06 Thread Jeff Dege
t; Sent: Thursday, July 05, 2007 4:00 PM > To: Jeff Dege > Cc: users@openlayers.org > Subject: Re: [OpenLayers-Users] Augmenting a method? > > > addFeatures: function(features) { > > /// your code > > > OpenLayers.Laye

[OpenLayers-Users] Augmenting a method?

2007-07-05 Thread Jeff Dege
In a derived class, how do I override a method, and then call the parent's implementation of that method? In C++: class Foo() { virtual void snaffle() { cout << "Snaffle!" << endl; } } class Bar: public Foo { virtual void snaffle() { Foo::snaffle(); Foo::snaffle(); }

[OpenLayers-Users] Reprojecting GML?

2007-06-14 Thread Jeff Dege
I'm displaying an Openlayers map with one layer being a GML file that I'm building from a number of sources. This GML layer displays points that I'm given as Lat/Long values. I'd like my map to be displayed in a projection other than Lat/Long - maybe epsg:2163, instead of the epsg:4267 my source

[OpenLayers-Users] GML and arcs?

2007-06-13 Thread Jeff Dege
How well does OpenLayers handle arc geometries? If I'm drawing a layer with perhaps 100 features, described in GML, would it be faster to draw using arcs (which could describe the data with fewer points), or with polygons (which would need more points, but might be faster, if the drawing engines u

[OpenLayers-Users] Layer.GML.features.length

2007-06-07 Thread Jeff Dege
I'm creating a GML layer from a GML file. I want the map to zoom to the smallest box bounding all the features in the GML file. What I've tried is: var map = new OpenLayers.Map('map', {controls: []}); var gmlLayer = new OpenLayers.Layer.GML("GML", "FEATURELIST.GM

Re: [OpenLayers-Users] GIS Layer as baselayer?

2007-06-07 Thread Jeff Dege
Thanks. That works. > -Original Message- > From: Christopher Schmidt [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 06, 2007 6:19 PM > To: Jeff Dege > Cc: users@openlayers.org > Subject: Re: [OpenLayers-Users] GIS Layer as baselayer? > > On Wed, Jun 06,

[OpenLayers-Users] GIS Layer as baselayer?

2007-06-06 Thread Jeff Dege
I'm trying to draw a very simple map from a GML file. One layer, three features. About as simple as it gets. And it's not working, because Layer.GML is derived from Layer.Vector, and Vector cannot be a baselayer. Now, I might have wanted to revisit that, and try to determine exactly why it was