[OpenLayers-Users] Overwriting OL classes

Gregor at HostGIS gregor at hostgis.com
Mon Apr 6 11:40:05 EDT 2009


Heidt, Christopher M. wrote:
> Is there a prefered method for overwriting an ol class?
> I want to use my own custom cluster strategy,
> so is it as easy as including my own js file after i include ol?

1) Get your own copy of OL and use that, instead of using the hosted 
copy. Change your app to use it.

2) Go into the source and hack away.

3) Go into the ol build/ directory and "python build.py" to merge all of 
the changes and build a compressed copy of OL. Believe me, running OL 
with hundreds of uncompressed files is not fun.

4) Copy the resulting build/OpenLayers.js into the OL directory, 
overwriting the old one.

-- 
HostGIS, Open Source solutions for the global GIS community
Greg Allensworth - SysAdmin, Programmer, GIS Person, Security
Network+   Server+   A+   Security+



More information about the Users mailing list