-
Notifications
You must be signed in to change notification settings - Fork 466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving to Openlayers 5 #123
Comments
Yes its old ol version (<3.20). |
Yeah, or maybe we can update them to view.animate in current openlayers, I will be working on a new branch to make ol-ext compatible with ol 5 which has breaking changes. |
The view.animate is already used. There is just a fallback when it doesn't exit (older version). We just have to remove the test. I can see you're working on an ol-5 branch 👍 . Be aware we have to provided a full build (./dist) for those who use it. This means we have to I think we can still use: import ol_Map from 'ol/Map';
export function createMap() {
return new ol_Map({});
} Do you have a repo as ol-ol-ext-webpack-example with to work on it. |
Oh, I never saw the guide, also I was wrong on using |
I think we can test the pre-release v5.0.0-beta.10 to see if all is running well and what is broken. import ol from 'ol'
...
ol.inherits(ol_control_Search, ol_control_Control); should be: import {inherits as ol_inherits} from 'ol'
...
ol_inherits(ol_control_Search, ol_control_Control); I've the same issue with all ol namespaces: import {add as ol_coordinate_add} from 'ol/coordinate'
import {transform as ol_proj_transform} from 'ol/proj'
...
ol_coordinate_add(coord, 5);
var c = ol_proj_transform(coord, 'EPSG:4326', 'EPSG:4358'); All other classes (with CamelCase) should work properly with no modification as they are exported as default (I guess). I don't know how it will run with jsDoc and I propose to stay with the classical namespace (ol.coordinate) still we get an other idea 😄. |
Yeah you are right, I think the only things to change is |
I've already done some test on your example repo. I can remove the error on the ol-ext lib but I've still get some warning on ol itself. |
Hello, obs.on('change', fn, this) is now obs.on('change', fn.bind(this)); So far all is working with v4.6.5 and v5.0.0 (with the dist) excepted the Now I'll been working on moving to ol5 but this will introduce breaking changes with the ol4 @+ |
This is great work @Viglino , I will create a test app with ol-ext@v2.0.5 and ol5 to do more tests. Will later upgrade my main projects to ol5. Thanks much. for info ol5 is officially out |
Use the ol-5 branch to test. import {inherits as ol_inherits} from 'ol'
import {getDistance as ol_sphere_getDistance} from 'ol/sphere'
import {transform as ol_proj_transform} from 'ol/proj'
import ol_control_Control from 'ol/control/Control'
import ol_Feature from 'ol/Feature' |
I've done some tests and it seems ok to me. |
Hello, |
Hi, |
OK I'll have a look! |
I've build the dist and the examples are running (except snapguide). |
All examples are running 😄 |
New version v3.0.0 is now available on npm ol-ext@3.0.0 😄 |
We have some legacy openlayers animation here , also here, here
The text was updated successfully, but these errors were encountered: