Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services

Custom tile server address for openstreetmap / better privacy

  • Stephan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
23 hours 19 minutes ago #180059 by Stephan
Hello,

For better privacy, I would like to request an option/input field to enter a custom tile server address to be used in OpenStreetmap.

Currently the address is hardcoded in /media/com_eventbooking/js/plg-eventbooking-map-openstreetmap.js and points to https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png.

I want it to point to our own server, where a script is implemented to download and cache the tiles. The script is adapted from this: wiki.openstreetmap.org/wiki/ProxySimplePHP .

The browser requests go to our server, which in turn downloads the tiles to the server and serves them from there to the user. The ip address of the user is never forwarded to OpenStreetmap. 

To get it working in the current environment, I copied plg-eventbooking-map-openstreetmap.js to our template folder and changed the server address to our local tile server.

I then copied /plugins/eventbooking/map/tmpl/openstreetmap.php to templates/cassiopeia/html/plg_eventbooking_map/openstreetmap.php and changed it to include the modified js-file.

It all works perfectly well, but a simple config field to enter our tile server address would simplify quite a bit and be more future proof. 

Kind regards

Stephan

 

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
20 minutes ago #180068 by Tuan Pham Ngoc
Hi Stephan

I just implemented support for this. Please submit a support ticket so that I can send the updated version which support this feature to you and you can remove the override

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc