I have a Web GIS Server. As shown below, in general when a user connect to my WebGIS it makes the following routes :
- User enter GIS address (route 1).
- Download leaflet code page (route 2).
- Connect to OSM Server (route 3).
Download tiles on laptop and view tiles (rout 4).
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="shortcut icon" type="image/x-icon" href="docs/images/favicon.ico" /> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"/> <script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet.js" ></script></head> <body> <div id="mapid" style="width: 600px; height: 400px;"></div> <script> var mymap = L.map('mapid').setView([51.505, -0.09], 13); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 18, tileSize: 512, zoomOffset: -1 }).addTo(mymap); </script> </body></html>
How can I change routes in model A to B?
Of course I don't want to download any tiles on my server to user views tiles from my server. I think I should use something like proxy.