[OpenLayers-Users] Compressing 2.6 OpenLayers
(OpenLayers.Control is null or not an object)
Linda Rawson
linda.rawson at gmail.com
Thu Aug 28 16:17:54 EDT 2008
No. It is just the standard spericalmercator.html file in the examples
directory.
I am using python 2.5.2.
On Thu, Aug 28, 2008 at 2:06 PM, Eric Lemoine <eric.c2c at gmail.com> wrote:
> Do you have a FireBug <script> tag in your html file? Eric
>
> 2008/8/28, Linda Rawson <linda.rawson at gmail.com>:
> > Something is wrong with the following lines:
> >
> > for(var i=0;i<scripts.length;++i){
> > if(scripts[i].src.indexOf("firebug.js")!=-1){
> > OpenLayers.Util.extend(OpenLayers.Console,console);
> > break;
> > }}}})();
> >
> > If I remove them everything runs fine.
> >
> > Linda
> >
> > 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.
> >> Eric
> >>
> >> 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
> >> 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
> >> >
> >>
> >
> >
> >
> > --
> > Linda Rawson
> >
>
--
Linda Rawson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080828/e77fbc1d/attachment.html
More information about the Users
mailing list