Re: [OpenLayers-Users] Selecting polygon error.

2008-01-18 Thread samd
Oops sorry, I mean removing the callbacks onSelect and onUnselect still results in the same error. S.D. samd wrote: > > Using the callbacks encounter the same problem. > > There is a difference between yours and mine though in terms of the > polygons are created as a re

Re: [OpenLayers-Users] Selecting polygon error.

2008-01-18 Thread samd
Using the callbacks encounter the same problem. There is a difference between yours and mine though in terms of the polygons are created as a result of an AJAX callback. S.D. Eric Lemoine-3 wrote: > > On Jan 18, 2008 9:50 AM, Pierre GIRAUD <[EMAIL PROTECTED]> wrote: >> Sorry, I have no clue.

[OpenLayers-Users] Selecting polygon error.

2008-01-17 Thread samd
Hi I was discussing this in a previous message but created a new one since it is a different topic. When I am using a select control on a polygonLayer such as the following: selectControl = new OpenLayers.Control.SelectFeature(polygonLayer,

Re: [OpenLayers-Users] Node has no parent exception when trying to draw Polygon

2008-01-17 Thread samd
One more thing, I have built the source uncompressed in the hopes to be able to step debug using Firebug but the version from svn when built tells me that rendering is not supported in my browser even though I am using Firefox. S.D. samd wrote: > > Apologies but I'm now encounteri

Re: [OpenLayers-Users] Node has no parent exception when trying to draw Polygon

2008-01-17 Thread samd
ntrol ); selectControl.activate(); Thanks once again, S.D. Christopher Schmidt-4 wrote: > > On Thu, Jan 17, 2008 at 10:25:09AM -0800, samd wrote: >> >> Hi, I originally had thought this but looking at the drawFeature function >> of >> OpenLayers.Control.DrawFeatur

Re: [OpenLayers-Users] Node has no parent exception when trying to draw Polygon

2008-01-17 Thread samd
Excellent Chris, thanks this worked. S.D. Christopher Schmidt-4 wrote: > > On Thu, Jan 17, 2008 at 10:25:09AM -0800, samd wrote: >> >> Hi, I originally had thought this but looking at the drawFeature function >> of >> OpenLayers.Control.DrawFeature on wiki i

Re: [OpenLayers-Users] Node has no parent exception when trying to draw Polygon

2008-01-17 Thread samd
Hi, I originally had thought this but looking at the drawFeature function of OpenLayers.Control.DrawFeature on wiki it creates it. drawFeature: function(geometry) { var feature = new OpenLayers.Feature.Vector(geometry); this.layer.addFeatures([feature]); this.feature

[OpenLayers-Users] Node has no parent exception when trying to draw Polygon

2008-01-16 Thread samd
I'm trying to reconstitute a polygon from points I previously saved from a polygon to the backend. The points are correct and I'm reconstructing by: 1.) Creating an array of Points based on retrieved points. 2.) Creating a LinearRing with the Array of Points 3.) Creating a Polygon with the Linear

Re: [OpenLayers-Users] Adding new zoombar control?

2007-11-29 Thread samd
ontrol(new OpenLayers.Control.MousePosition()); map.addControl(new OpenLayers.Control.OverviewMap()); map.addControl(new OpenLayers.Control.KeyboardDefaults()); Christopher Schmidt-4 wrote: > > On Thu, Nov 29, 2007 at 11:11:13AM -0800, samd wrote: >> >> Hi Chris, very basic this works: >> &

Re: [OpenLayers-Users] Adding new zoombar control?

2007-11-29 Thread samd
just need to add the extents or another parameter prior to adding the controls. S.D. Christopher Schmidt-4 wrote: > > On Wed, Nov 28, 2007 at 06:37:44PM -0800, samd wrote: >> >> Hello Chris, >> >> It looks as if when you try to set the numZoomLevels on the map t

Re: [OpenLayers-Users] Adding new zoombar control?

2007-11-29 Thread samd
just need to add the extents or another parameter prior to adding the controls. S.D. Christopher Schmidt-4 wrote: > > On Wed, Nov 28, 2007 at 07:25:09PM -0800, samd wrote: >> >> The last link you gave me shows a whole bunch of pink tiles on the botom. > > That'

Re: [OpenLayers-Users] Adding new zoombar control?

2007-11-29 Thread samd
lse happening in the script however, we are just using the map api for adding the controls setting center, extents etc. S.D. Christopher Schmidt-4 wrote: > > On Wed, Nov 28, 2007 at 07:25:09PM -0800, samd wrote: >> >> The last link you gave me shows a whole bunch of pink tiles on

Re: [OpenLayers-Users] Adding new zoombar control?

2007-11-28 Thread samd
-0800, samd wrote: >> >> Hello Chris, >> >> It looks as if when you try to set the numZoomLevels on the map to >> anything >> other then 12 it results in pink tiles being generated. > > Not enough information. http://openlayers.org/dev/exampl

Re: [OpenLayers-Users] Adding new zoombar control?

2007-11-28 Thread samd
Hello Chris, It looks as if when you try to set the numZoomLevels on the map to anything other then 12 it results in pink tiles being generated. Any ideas? Thanks, S.D. Christopher Schmidt-4 wrote: > > On Wed, Nov 28, 2007 at 10:54:47AM -0800, samd wrote: >> >> Is there a

Re: [OpenLayers-Users] Adding new zoombar control?

2007-11-28 Thread samd
Thanks Chris! S.D. Christopher Schmidt-4 wrote: > > On Wed, Nov 28, 2007 at 10:54:47AM -0800, samd wrote: >> >> Is there a way of doing this so that you might have a zoombar control >> that >> looks like Googles? > > http://openlayers.org/dev/examples/

[OpenLayers-Users] Adding new zoombar control?

2007-11-28 Thread samd
Is there a way of doing this so that you might have a zoombar control that looks like Googles? -- View this message in context: http://www.nabble.com/Adding-new-zoombar-control--tf4891748.html#a14007775 Sent from the OpenLayers Users mailing list archive at Nabble.com. _

Re: [OpenLayers-Users] OverviewMap does not work with examples.

2007-10-30 Thread samd
Nobody? samd wrote: > > OpenLayers 2.5 > > As taken directly from the OpenLayers examples and my map is named map > when ever I add the following code: > > var options = {mapOptions: {numZoomLevels: 1}}; > map.addControl(new OpenLayers.Control.OverviewMap(options)); &

[OpenLayers-Users] OverviewMap does not work with examples.

2007-10-30 Thread samd
OpenLayers 2.5 As taken directly from the OpenLayers examples and my map is named map when ever I add the following code: var options = {mapOptions: {numZoomLevels: 1}}; map.addControl(new OpenLayers.Control.OverviewMap(options)); I always end up with: bounds has no properties zoomTo(null)Open

Re: [OpenLayers-Users] lint for javascript

2007-09-18 Thread samd
http://www.jslint.com/ Erik Uzureau-3 wrote: > > Does anyone know of a good lint-like program for running over JavaScript > files? > > Erik > ___ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > > -- Vi

Re: [OpenLayers-Users] Fixing Google Layers, OL SVN + OL <= 2.4

2007-09-18 Thread samd
This worked great Chris. Thanks again! S.D. Christopher Schmidt-4 wrote: > > On Tue, Sep 18, 2007 at 01:46:24PM -0700, samd wrote: >> >> Yes Chris, >> >> I added the change you mentioned to the start of my onload routine before >> the map/layers are cr

Re: [OpenLayers-Users] Fixing Google Layers, OL SVN + OL <= 2.4

2007-09-18 Thread samd
Alright, thanks Christopher! I'll give that a try. S.D. Christopher Schmidt-4 wrote: > > On Tue, Sep 18, 2007 at 01:46:24PM -0700, samd wrote: >> >> Yes Chris, >> >> I added the change you mentioned to the start of my onload routine before >> the m

Re: [OpenLayers-Users] Fixing Google Layers, OL SVN + OL <= 2.4

2007-09-18 Thread samd
It appears to be related to adding markers to a marker layer. When I do something like: for ( i in ildas ) { var ipAddress = ildas[i].ipAddress; var stationID = ildas[i].stationID; var latitude = ildas[i].latitude; var longitude = ildas[i].longitude; var marke