[OpenLayers-Users] slimming OL

Wendell Turner wendell at enflight.com
Tue Mar 9 14:02:27 EST 2010


On Tue, Mar 09, 2010 at 10:04:44AM -0500, Christopher Schmidt wrote:
> On Tue, Mar 09, 2010 at 08:26:36AM -0600, P Kishor wrote:
> > On Tue, Mar 9, 2010 at 8:23 AM, Alexandre Dube <adube at mapgears.com> wrote:
> > > Hi,
> > >
> > > You could use OpenLayerer to do so :
> > >
> > > http://openlayerer.appspot.com/
> > 
> > Wow! This is very cool (and should be advertised more prominently). Of
> > course, now I have another problem -- way too many choices, and not
> > enough guidance to choose from them.
> 
>   http://docs.openlayers.org/library/deploying.html#custom-build-profiles
> 
> "Once you have included these files, you should add more files to the
> ‘[include]’ section of the file. The files listed here should be the list of
> files containing any class you use in your application. You can typically find
> these classes by looking through your code for any cases where ‘new
> OpenLayers.ClassName()’ is used."

Cool.  I tried that, and was able to reduce my OpenLayers.js
to 371K (or 52%, I'm using a lot of Controls and Handlers).

Everything works, but this:  when modifying a LineString,
the line turns blue with boxes on it (as usual).  The
LineString can be modified.  However clicking away from the
line does not un-highlight it.  You must click on the Pan or
Draw icon to un-highlight the line.  I see no error messages
in the error console or firebug.  What items are missing in
my custom OL build?

Thanks,

Wendell




More information about the Users mailing list