Features

Raster Maps

                        
<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Raster map</title>
        <meta property="og:description" content="Display vector tile." />
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="https://unpkg.com/maplibre-gl@4.4.0/dist/maplibre-gl.css" />
        <script src="https://unpkg.com/maplibre-gl@4.4.0/dist/maplibre-gl.js"></script>
        <style>
            body { margin: 0; padding: 0; }
            html, body, #map { height: 100%; }
        </style>
    </head>
    <body>
        <div id="map"></div>

        <script>
            map = new maplibregl.Map({
                "container": "map",
                "center": [6.22769, 46.39282],
                "zoom": 10,
                "style": {
                    "version": 8,
                    "sources": {
                        "raster-tiles": {
                            "type": "raster",
                            "attribution": "©Isomaps ©OSM",
                            "tiles": [
                                "https://api.iso-maps.com/v1/tiles/{z}/{x}/{y}.webp?api_key=YOUR_API_KEY"
                            ],
                            "tileSize": 256,
                        }
                    },
                    "layers": [
                        {
                            "id": "tiles",
                            "type": "raster",
                            "source": "raster-tiles",
                            "minzoom": 0,
                            "maxzoom": 16
                        }
                    ]
                },
            });

            map.addControl(new maplibregl.FullscreenControl());

            map.addControl(new maplibregl.NavigationControl({
                visualizePitch: true,
                showZoom: true,
                showCompass: true
            }));

        </script>
    </body>
</html>

                            

Ready to Transform Your
Mapping Experience
with IsoMaps?

Sign up for free
No credit card required

Questions? Our support team is ready for you