Naar inhoud springen

Gebruiker:Milliped/Maplink/Topotijdreis gebruiken als underlay in geojson-io

Uit Wikipedia, de vrije encyclopedie

Een manier om historische kaarten te maken, of kaarten van objecten die er niet meer zijn, is met geojson een map bestand te maken. Om een accurate kaart te maken, kan het nuttig zijn deze over te trekken van een bestaande kaart.

Verdere uitleg over het werken met geojson en map bestanden staat hier.

Het doel is om oude kaarten te gebruiken als achtergrond om geojson .map bestanden te maken. De bron is de bekende website www. topotijdreis.nl. Topotijdreis gebruikt ArcGis tiles als achtergrond, we willen deze inladen op [geojson.io] om geografisch correcte verbindingen te maken.

ChatGPT geeft de volgende uitleg:

ChatGPT instructies 

    Find the ArcGIS Service URL:
    You need the URL of the ArcGIS service you want to use as an underlay. ArcGIS services can provide tiles in various formats like MapServer, FeatureServer, etc. The URL typically looks like https://<your-arcgis-server>/arcgis/rest/services/<your-service-name>/MapServer.

    Modify geojson.io:
    geojson.io allows you to add custom tiles via the "Add" menu. Here's how you can do it:

        Open geojson.io.

        Click on the "Add" dropdown menu on the top-right.

        Select "Custom Tiles".

        In the dialog that appears, enter the URL for the ArcGIS service tiles. You will need to modify the URL to fit the {z}/{x}/{y} format required by geojson.io.

        For example, if your ArcGIS tiles URL is https://<your-arcgis-server>/arcgis/rest/services/<your-service-name>/MapServer/tile/{z}/{y}/{x}, you would enter this URL in the "Custom Tiles" dialog.

    Adding ArcGIS Tiles to geojson.io:
        Enter the URL in the format mentioned above.
        Click "Add".

Now the tiles from the ArcGIS service should appear as an underlay on your geojson.io map.
Example Step-by-Step:

    Get the ArcGIS Tile URL:
    Suppose you have an ArcGIS service available at https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer.

    Format the URL:
    Modify the URL to use the {z}/{x}/{y} format required by geojson.io: https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}.

    Add to geojson.io:
        Open geojson.io.
        Click on "Add" > "Custom Tiles".
        Enter the URL https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}.
        Click "Add".

This should display the World Imagery tiles from ArcGIS as an underlay on your geojson.io map.

If you encounter any issues, double-check the URL format and ensure your ArcGIS service is accessible and supports tile requests.

Rasterlaag opgeven in geojson.io

[bewerken | brontekst bewerken]

ChatGPT werkte met een wat andere versie van geojson.io, je zal nu in het menu meta add raster tile layer moeten aangeven, en daar dan de URL ingeven.

Ik gebruik Firefox en de developer tools, die je met F12 op kan roepen. Voor andere browsers, google "developer tools naam-van-je-browser" :-). Ga naar Topotijdreis.nl, en selecteer het jaar van de kaart die je wilt gebruiken, en navigeer naar het gebied waar je de tile van wilt gebruiken. Ja zal in de developer tools dan de GET zien, en als je erop klikt in de details de precieze URL, bijvoorbeeld GET https://tiles.arcgis.com/tiles/nSZVuSZjHpEZZbRo/arcgis/rest/services/Historische_tijdreis_1952/MapServer/tile/10/37867/37771?blankTile=false voor een deeltje van deze kaart (de Staatsmijn Maurits in 1952). Ik gok nu dat ?blankTile=false weghalen al aardig helpt, maar niet zeker dat de x-y-z waardes aanpast moeten worden.

Testen:


To be continued.