Background
I am using the following client and server technologies:
- The map server as a container from https://github.com/consbio/mbtileserver/
- The
Leaflet's
library forAngular 7
As documented here: https://leafletjs.com/reference-0.7.7.html#tilelayer the TileLayer control uses the url template: 'http://{s}.somedomain.com/blabla/{z}/{x}/{y}.png'
Requirement
My customer has requested that I replace the above map server, with another that is deployed on his network.
I would like to support the new server while making minimum changes to the client (in particular I would like to continue using the Leaflet
map control).
What I have tried
I have an example of a client that uses the new server.
The example is written in React
and also uses the Leaflet
map control.
However, I noticed that the URL that it sends to the server does not use the above template. Rather, it includes a query string and includes parameters of type BBox which I assume refers to bounding boxes.
Unfortunately, I do not have source code of the client, nor the full URL as an example.
Question
Can someone help me understand:
- Is there indeed a URL template supported by consbio/mbtileserver that uses bounding boxes instead of z,x,y?
- Assuming the
Leaflet Angular
library can do the same as theLeaflet React
library in the example, what changes do I need to make to the map control configuration to support it?