Skip to content
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

addSearchOSM() not working in exported Standalone Web Pages #225

Closed
PureLemon opened this issue Aug 26, 2024 · 3 comments
Closed

addSearchOSM() not working in exported Standalone Web Pages #225

PureLemon opened this issue Aug 26, 2024 · 3 comments
Labels

Comments

@PureLemon
Copy link

OpenStreetMap has updated their Authentication and I believe it's breaking addSearchOSM().

The addSearchOSM() search feature will not work with a Leaflet map that has been Exported to a Standalone Web Page. Here is the link to a July 2024 OSM Wiki Update that might have something to do with this suddenly not working.

Below, I've added an image of the Access Blocked page that appears in the browser console when attempting to use the OSM search. Here is the Usage Policy Link that is linked in the image.

image

When using RStudio's integrated Viewer the OSM search works without any issues. The issue only comes up when exporting the Leaflet to a Web Page and attempting to use the search there.

The following code is the minimum required to replicate the issue.

library(leaflet)
library(leaflet.extras)
leaflet()  %>% 
  addTiles() %>% 
  addSearchOSM()
@PureLemon PureLemon added the bug label Aug 26, 2024
@trafficonese
Copy link
Owner

I cannot reproduce this.
The OSM search is working for me in an exported leaflet map, in a shiny app and in the RStudio Viewer.
Maybe you made too many requests?

No heavy uses (an absolute maximum of 1 request per second).

@PureLemon
Copy link
Author

Sorry about that, after some testing this seems to be an issue only effecting devices at my work. My personal computer had no problem with the OSM Search while my work laptop still couldn't get it to work. This must be a security problem with our work devices. I apologize for making this Issue post!

@trafficonese
Copy link
Owner

No worries, I'll close the issue then :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants
@trafficonese @PureLemon and others