Jean-Marc Viglino

Results 278 comments of Jean-Marc Viglino

You're right... I've encapsulated the `getColor` method to make it accessible with worker... I'll have to find a trick to handle it as a parameter...

I added a `getColor` parameter to let you override the default color function when creating IDW. You can also add `lib` functions when using workers. See doc http://viglino.github.io/ol-ext/doc/doc-pages/ol.source.IDW.html and example...

If you're not using worker, you just have to set the getColor method. ```javascript idwSource.getColor = function(v) { return [r,g,b,a] } ``` If you're using worker it's a little bit...

ol-ext has its own TypeScript def: https://github.com/Siedlerchr/types-ol-ext

The problem is to ensure compatibility with the pure js lib (https://viglino.github.io/ol-ext/dist/ol-ext.js). But ES6 class syntax is now widely supported in all modern browsers and could be used indeed (ending...

> That is not compatible with extending classes using `ol_ext_inherits` so the short term fix would be to change to https://openlayers.org/en/v6.15.1/css/ol.css https://openlayers.org/en/v6.15.1/build/ol.js Examples are now working on v6.15.1 while updateing...

> @Razi91 VSCode as an option to automatically convert to class syntax. That's what I use as a base for creating the external typedefs. I've just discovered this function 🤩...

@Siedlerchr tell me if you have something working. I'll may have some times to work on it tomorrow...

I've started to move to ES6 classes. @Razi91 see https://viglino.github.io/ol-ext/examples/animation/map.animatedcluster.html @Siedlerchr I don't use your PR to add functionalities step by step (the whole bulk is to hard to debug),...

@Siedlerchr I'm slowly moving to class declaration (actually I'm in holidays). Geoportail Layer are now using class declaration...