Problem/Motivation

OpenTopoMap is a map provider recently added to the list of map provider. Its display works as designed on desktop but the tiles are not displayed on a mobile device. Tested on fresh D10.3.9 and D11.0.8 instances.

Steps to reproduce

Select the OpenTopoMap in the Leaflet Map Tiles Layer, either in a view or in the display of a content type.

Comments

gillesbailleux created an issue. See original summary.

niharika.s’s picture

Assigned: Unassigned » niharika.s
niharika.s’s picture

Assigned: niharika.s » Unassigned
gillesbailleux’s picture

StatusFileSize
new359.62 KB

The same situation occurs on another D11.1.0 instance: the OpenTopoMap tiles are not displayed on a mobile device nor on an emulated mobile device.

berramou’s picture

Hello,
Thank you @gillesbailleux for your report.
Yes you are right opentopomap doesn't support tiles with this form $zxy = '{z}/{x}/{y}{r}.png';
By checking the official website opentopomap https://opentopomap.org/#map=5/49.023/10.020 now they are using simple form $simple_zxy = '{z}/{x}/{y}.png';

I will commit the fix it will be part of the next release.

  • berramou committed 0ac8f234 on 2.2.x
    Issue #3489164: OpenTopoMap not displayed on mobile device
    
berramou’s picture

StatusFileSize
new405.76 KB

Result after the fix!

Screenshot demo

gillesbailleux’s picture

StatusFileSize
new390.92 KB

Greetings @berramou,

Thank you very much for taking care of this bug report and also for fixing it in the next release.

In the meantime, I modified line 522 of the leaflet_more_maps.module file and I confirm the bug is fixed.

I am fond of this map provider and your help is more than welcome.

gillesbailleux’s picture

Status: Active » Reviewed & tested by the community
berramou’s picture

Status: Reviewed & tested by the community » Fixed
berramou’s picture

Status: Fixed » Closed (fixed)