[OpenLayers-Users] Custom build: ordering
Bart van den Eijnden
bartvde at osgis.nl
Thu Mar 17 17:24:31 EDT 2011
Right are you using the Measure or DrawFeature Control and not including Handler.Path or Handler.Polygon in your build file?
Bart
Sent from my iPhone
On Mar 17, 2011, at 10:16 PM, <christopher.schmidt at nokia.com> wrote:
>
> On Mar 16, 2011, at 5:34 AM, ext gingerbbm wrote:
>
>> Dear all
>>
>> I'm tasked with replacing the default build of OL 2.10 with a slimmed-down
>> one, and I'm almost there. But one vector tool (draw circle) triggers
>> "this.handler.freehandMode is not a function" errors in Firebug. Comparing
>> my custom build with the original suggested that I needed to include
>> Handler.js further up in the build order.
>
> I don't think this is true. I think that it is more likely that you
> are not including the appropriate handler that is needed internally
> (and it's not being included automatically, which is probably a bug
> in OL). Unfortunately, without more details -- including a sample build
> and some minimal code to reproduce it -- it's probably hard to debug.
>
> -- Chris
>
>> I placed Handler.js under [first] but that didn't work.
>> After reading other examples I changed it to look like this:
>>
>> [first]
>> OpenLayers/SingleFile.js
>> OpenLayers/BaseTypes/Class.js
>> OpenLayers/Handler.js
>>
>> Not sure if it would help to post the whole CFG but in the interests of
>> brevity I won't for now. Suffice to say the [last] and [include] sections
>> are empty; the [exclude] section has many entries.
>>
>> Would appreciate any suggestions because I'm scratching my head here.
>>
>> Many thanks
>> Stuart
>>
>> --
>> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Custom-build-ordering-tp6175825p6175825.html
>> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>> _______________________________________________
>> Users mailing list
>> Users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
More information about the Users
mailing list