[OpenLayers-Users] Compressing 2.6 OpenLayers
(OpenLayers.Control is null or not an object)
linda.rawson at gmail.com
Thu Aug 28 16:00:53 EDT 2008
Something is wrong with the following lines:
If I remove them everything runs fine.
On Thu, Aug 28, 2008 at 11:29 AM, Eric Lemoine <eric.c2c at gmail.com> wrote:
> Hi. This is really weird. Open OpenLayers.js in an editor and search
> for "OpenLayers.Control = OpenLayers.Class", you should get one
> occurence of this, otherwise your build isn't valid, for some reason.
> 2008/8/28, Linda Rawson <linda.rawson at gmail.com>:
> > I have been on another project so I am just getting around to
> compressing my
> > version of openlayers. So I thought I would try the stable version first
> > before adding my stuff into it.
> > Here are my steps:
> > 1. Grabbed latest stable build.
> > 2. Switched to build directory.
> > 3. python ./build.py full.cfg
> > 4. Copied Openlayers.js (466 KB) to .. (1 directory above lib, same
> > as build, img, theme, tools)
> > 5. Moved SpericalMercator.html example to this directory also.
> > 6. Changed to point to
> > <script src="OpenLayers.js"></script>
> > 7. Run and get the following error:
> > Microsoft JScript runtime error: 'OpenLayers.Control' is null or not an
> > object.
> > I also get this when I use what I used in 2.5 to compress and it does not
> > work in 2.6.
> > Does anybody have any idea what to do with this error? I would really
> > to compress Openlayers.
> > Thanks!
> > --
> > Linda Rawson
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users