[OpenLayers-Users] Compressing 2.6 OpenLayers (OpenLayers.Control is null or not an object)

Linda Rawson linda.rawson at gmail.com
Wed Aug 27 20:01:20 EDT 2008


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 level
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 like
to compress Openlayers.

Thanks!
-- 
Linda Rawson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080827/31cb5b11/attachment.html


More information about the Users mailing list