Closed (fixed)
Project:
OpenLayersD8
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Dec 2020 at 07:53 UTC
Updated:
25 Oct 2023 at 18:04 UTC
Jump to comment: Most recent
Comments
Comment #2
AndyLicht commentedHi,
maybe between christmas and new years - day. I do it all in my freetime - so this year was very strange also for me.
beste regards
Tim
Comment #3
orkutmuratyilmaz@AndyLicht, thank you for your quick reply.
I wish you a beautiful new year:)
Comment #4
AndyLicht commentedHi,
i´ve tested the openlayersd8 1.2 with openlayers 6.5.0 and it works fine. Can you explain your problems?
best regards
Comment #5
AndyLicht commentedI´ve seen same errors. I hope to fix them in the next weeks.
Comment #7
ilciacio commentedSorry, I've problem to push to the issue fork.
The motivation is an error with customcontrol(lers) using openlayers 6.5.0
Here the changes to the code to test with Rotate custom control just for testing
in openlayers.drupal.js use this
And here is the new ol.customcontrol.Rotate.js (parameters are passed but not used)
Comment #8
AndyLicht commentedThanks,
im still woking on it. But, i need this month, maybe also march to port all functions.
Comment #10
ilciacio commentedHi AndyLicht,
I don't think that a rewrite of all the controllers is mandatory.
Using the namespacing in the controllers configuration it is possible to get most of the default controllers from openalyers.
I've tested a couple of them (Zoom from the controller and DragRotation from interaction) and they seems to works out of the box.
I've started a little bit of documentation here https://www.drupal.org/docs/contributed-modules/openlayersd8 where the configuration of the controllers is explicated.
Best reagrds.
Comment #11
AndyLicht commentedHi,
i think i need to rewrite the most functions, because they are all configurable. So i need to modify some small parts. The "problem" with they namespaces is, that it could be easier to add custom functions. Add the moment you are right, that is a terrible solution. I´m working at a new one, i think the default ol solution is the best...
Your code at #7 is not working very well, because i have too implement the if for all others. I will push a new dev-version tomorrow, thei i´ve added a new rotate and startet with the draw-method.
is it possible to chat at wednesday or thursday?
best regards
Comment #12
ilciacio commentedHi AndyLicht,
take a look to this commit
The
openlayers.drupal.jshas been restored to the original one.The custom controller
js/control/ol.customcontrol.Rotate.jsis taking the parameters.Ok for the chat wednesday or thursday, I think I can be free both the days.
Have a good day.
Comment #13
AndyLicht commentedIf changed all controls, so you can use openlayers 6.5 with the module. It is important to clone the branch 3.x. For the stable release of 3.0 i want to add two new entities (projection and style) and change the layer (adding styles) and control (adding javascript config object) entities.
Comment #14
AndyLicht commentedI fixed it for the 8.x-3.x Version.
Please use Entity Update, to update the entities.
Comment #15
ilciacio commentedThanks.
Using Entity update it works.
But I've this error in javascript
Comment #16
AndyLicht commentedYou have to set a map in the widget configuration. maybe it helps to install the examples.
Comment #18
orkutmuratyilmaz