[OpenLayers-Users] build profile question

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Tue Jan 30 07:25:14 EST 2007


Hi Christopher,

thanks for the clarification, I'll use the build profile that way for now,
I've opened up:

1) requires tag incorrect in OverviewMap.js
http://trac.openlayers.org/ticket/489

and

2) build system: automatically include files using @requires
http://trac.openlayers.org/ticket/490

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: Christopher Schmidt <crschmidt at metacarta.com>
Naar: Bart van den Eijnden OSGIS <bartvde at osgis.nl>
Cc: users at openlayers.org
Onderwerp: Re: [OpenLayers-Users] build profile question
Datum: 30/01/07 10:05

> On Tue, Jan 30, 2007 at 08:49:15AM +0100, Bart van den Eijnden (OSGIS)
wrote:
> &gt; Hi list,
> &gt; 
> &gt; I am trying to make a build profile.
> &gt; 
> &gt; Does the @requires tag still work? I always seem to get a key error:
> &gt; 
> &gt; Traceback (most recent call last):
> &gt;   File &quot;build.py&quot;, line 18, in ?
> &gt;     merged = mergejs.run(sourceDirectory, None, configFilename)
> &gt;   File &quot;../tools/mergejs.py&quot;, line 193, in run
> &gt;     if max([order.index(rfp) for rfp in files[fp].requires] +
> &gt; KeyError: 'OpenLayers/Control.js'
> &gt; 
> &gt; I started by copying lite.cfg and adding only PanZoom.js:
> &gt; 
> &gt; [first]
> &gt; OpenLayers/SingleFile.js
> &gt; OpenLayers.js
> &gt; OpenLayers/BaseTypes.js
> &gt; OpenLayers/Util.js
> &gt; 
> &gt; [last]
> &gt; 
> &gt; [include]
> &gt; OpenLayers/Events.js
> &gt; OpenLayers/Map.js
> &gt; OpenLayers/Layer.js
> &gt; OpenLayers/Layer/Grid.js
> &gt; OpenLayers/Layer/HTTPRequest.js
> &gt; OpenLayers/Layer/WMS.js
> &gt; OpenLayers/Layer/WMS/Untiled.js
> &gt; OpenLayers/Tile.js
> &gt; OpenLayers/Tile/Image.js
> &gt; OpenLayers/Control/PanZoom.js
> &gt; 
> &gt; [exclude]
> &gt; 
> &gt; If I add in OpenLayers/Control.js before I include PanZoom.js all is
fine,
> &gt; i.e. if I resolve the dependencies in the build file myself.
> 
> The dependancy resolution still requires you to include the files
> yourself, it simply resoles the order they end up in the build. So, if
> you want to build something which depends on Controls, you need to
> include OpenLayers/Control.js -- however, it can be at the end of the
> include list. Changing this behavior is an obvious feature request once
> you look at it, but I'd simply never thought about it: patches
> graciously accepted.
> 
> &gt; Also, the OverviewMap.js has @require: instead of @requires!
> 
> The OverviewMap requires line is definitely a bug. That one can be filed
> against the 2.3 release since it's so cheap to fix.
> 
> Regards,
> -- 
> Christopher Schmidt
> MetaCarta
> 
> 






More information about the Users mailing list