[OpenLayers-Dev] Advice on best way to extend a OL class.
Alexandre Dube
adube at mapgears.com
Thu Nov 10 08:30:22 EST 2011
Hi Phil,
The "Strategy Cluster Extended" would be a good class extending example :
http://openlayers.org/dev/examples/strategy-cluster-extended.html
HTH,
Alexandre
On 11-11-09 07:29 PM, Phil Scadden wrote:
> With every release, I patch linearRing.js to add a swapXY method. The
> reason for do it is pretty specialised - creating a polygon filter to
> use in ECQL through a protocol.script implementation. You need it if
> your application is running off a USB but want to do polygon filter on
> remote wfs server AND the native SRS is lat/long.
>
> So, not likely that method is going to get into the main OL code. Better
> would be have code in my application that just extended it. What is best
> practise in JS for doing this? (I'm a newcomer to this).
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Dev
mailing list