OpenLayers 5.3 JavaScirpt (WebGisOlTestHtml.zip)
Convert a program created in to a widget control
(WebOl53TestPg.zip) I moved the program
Error (Widget_Err.jpg) is displayed at the mouse event
Please tell me the cause.
In the IFrame sample you assigned “var map” in the <script> tag and refer to it in the local function and event handler. This is why it works.
In the Widget sample:
The fix is simply to save a local “var map” referring to the map and use it in the closure local function.
See attached script.
thanks for providing more information.
However the code creating the problems on IE 11 that you showed
comes from OpenLayers, not Wisej.
So it´s not a Wisej problem and you should rather contact the makers of OpenLayers
to get support for that specific issue.
The browser that causes the problem is IE11.
With other browsers (FireFox, Chrome, Edge)
No errors occur but normal operation is also
I do not.
Where errors occur is in the InitScript
Line 81 “var pixel = this.map.getEventPixel (evt.originalEvent);”
Will cause an error.
If it works properly, the mouse will move
Filled in red. (SampleHtml.jpg)
I have tried to reproduce the problem but I get no error.
Can you please tell a few more details ?
In which browser and on which action does the error occur ?
Thanks in advance.
Please login first to submit.