-
Notifications
You must be signed in to change notification settings - Fork 91
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
ol-geocoder 4.3.3 dosn't work in qgis2web preview #288
Comments
Hello. It seems that you don't display the whole ol-geocoder control as the gap to display it isn't reserved. *** EDIT *** is there any js error on the console ? |
The position of the geocoder control should be set by olwriter.py#L424-L425 PLS have a look on glass-button-customisation glass-button-customisation. Detail may have been changed from 4.2.0 |
Hi, this is exactly the problem, there is no debug environment where I can understand the problem and help myself and you. Basically the QGIS-QtWebKit preview is a fairly old web page reader, but it does not provide tools of any kind. In fact, if I export the map using the latest version of ol-geocoder everything works wonderfully, but it is precisely in the preview that the icon from version 4.2.0 does not appear on. I would think of a css problem, maybe you changed something like containers or elements, or did you use recent css methods that are only supported by recent browsers? It makes me think of the :has selector of css, which is still not fully supported today. Thank you and sorry for not being able to provide other elements. |
Yes, I changed something : I use unicode characters to display the loop You can tr to display a basic char. Try to add the following CSS
|
Hi Andrea, The first step is to be sure that we well understand the issue.
|
Thanks for your help first of all. PS: |
Hi Andrea May be the difference is that I removed any babel transcription form the production distribution There are many reasons for that:
I understand the issue to comply with very old integration or test tool but I don’t think that it would be a good idea to come back to support older language compatibilities. |
*** EDIT *** |
I'm quite convinced that the problem is the update to ECMAscript 2018 but you were right to update ol-geocoder and you absolutely must not go back. At the moment I have restored version 4.2.0 of ol-geocoder; during the preview of qgis2web the icon is visible but the search does not work; but producing the web map ol-geocoder works like a charm. QtWebKit, which generates the preview of qgis2web, is old, older than 2018, I will still work to transform the preview from QtWebKit to QtWebEngine, but I spent 2 days on it a little while ago with no result and I'm quite discouraged, maybe I should look for help. Thanks for now. Having understood the problem, I would say that you can close the issue. Thanks again. |
For sure, maintain the production & test environment is a tough task, sometime more challenging than the product. |
Hello, I'm the maintainer of qgis2web and the openlayers export uses ol-geocoder.
With version 4.2.0 I had no problems viewing the control in the qgis2web preview window (created with the old QtWebKit) while with subsequent versions I no longer see the icon. Can you think of a reason?
geocoder 4.2.0 where search no longer works
![2024-05-21 16_10_25-Export to web map](https://private-user-images.githubusercontent.com/89784373/332459290-4b7c6097-efa2-4f13-8d22-71f237417e1c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxOTY1OTUsIm5iZiI6MTcxOTE5NjI5NSwicGF0aCI6Ii84OTc4NDM3My8zMzI0NTkyOTAtNGI3YzYwOTctZWZhMi00ZjEzLThkMjItNzFmMjM3NDE3ZTFjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI0VDAyMzEzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMyNTlmZDZmMzc4OTdiMjY1YmRhNTdmMTYxMWQ5ZWY5ZGY2NGQwNzFiMGNlZGYwMWQyNTc4NDYyMDU2MmRlOWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.O1G82pRdL7ZKeMcRqDwrKdlXZArwuUSx-25MseChEd4)
geocoder 4.3.3 (the lens icon does not appear)
![2024-05-21 16_03_32-Export to web map](https://private-user-images.githubusercontent.com/89784373/332459357-358d0da1-1c06-4146-a975-3e651483e171.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxOTY1OTUsIm5iZiI6MTcxOTE5NjI5NSwicGF0aCI6Ii84OTc4NDM3My8zMzI0NTkzNTctMzU4ZDBkYTEtMWMwNi00MTQ2LWE5NzUtM2U2NTE0ODNlMTcxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI0VDAyMzEzNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVlZjY1YjdmNTVhZDliNGFmNjk3MDAwOTU4NDQ5OTNiNDdlMWQ4ZDFkZjVhNDAyODA2OTNkNmE2ZTM1OTAzNDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.iAyeSe8OXkEqGbV95qcSyYYDQaYBFaQPO_Mf9-WmpPk)
It is very important for users to view the icon in the preview. Thank you.
The text was updated successfully, but these errors were encountered: