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

Feature Request: GDPR compliant with Tile Proxy and local JS #178

Open
ahobitt opened this issue Oct 17, 2022 · 4 comments
Open

Feature Request: GDPR compliant with Tile Proxy and local JS #178

ahobitt opened this issue Oct 17, 2022 · 4 comments

Comments

@ahobitt
Copy link

ahobitt commented Oct 17, 2022

Thank you for the great plugin!
With a few additions, I am now using it in a DSGVO-compliant way, so that no more data is sent by the user.

I used the Tile Proxy PHP and hosted all JS and CSS files locally.

Would it perhaps be an option to integrate this directly into this plugin?

@bozdoz
Copy link
Owner

bozdoz commented Dec 30, 2022

I would love to hear about what you did! Perhaps it's worth adding to the FAQ, as a How-To

@bozdoz
Copy link
Owner

bozdoz commented Dec 30, 2022

If we can get a FAQ perhaps we can resolve #159

@ahobitt
Copy link
Author

ahobitt commented Dec 31, 2022

OpenStreet Maps Proxy/Cache

I don't like content blockers and I don't need to get consent for any cookies. I have gone a different way so that I can include the OSM maps for the user completely (my opinion) DSGVO compliant.

Step 1: The OSM Proxy/Cache Script

On a subdomain of my project I installed this Tile Proxy
It's really simple and serves that the visitor of the website (client) doesn't have to communicate with the OSM server, but only with my subdomain.
In addition, this script can also cache a map area for an adjustable time (keyword OSM bounding box).

Step 2: Wordpress Plugin Leaflet Maps

As already mentioned, the Wordpress plugin Leaflet Maps is used here.
Its settings have to be adjusted briefly:
In the Wordpress backend under Leaflet Map Settings we have to change the map tile url.
The original URL is the URL of the OSM server.
D262CCFC-9E36-4FEF-84B9-03836304E344

Step 3: Host leaflet.js locally (optional)

The plugin uses (logically, given the name) the leaflet.js library.
By default, this is delivered via the content delivery network (cdn) unpkg.com.
I would also like to host this library (and the associated CSS file) locally.
So download the package from leafletjs.com and unpack it on my own webspace.
Then adjust the Javascript and CSS URL in the plugin settings:
DB5954DF-B6BA-4348-BE95-3A82D333D578

@ahobitt
Copy link
Author

ahobitt commented Dec 31, 2022

If we can get a FAQ perhaps we can resolve #159

It also solves this request. Of course, the opt-in banner is also a possibility.

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

No branches or pull requests

2 participants