Skippo Statmap

Statmap is an HTTP-based API for generating static raster-images of nautical charts and aerial imagery.

URL format

{baseURL}/{style}.{format}?{params}

Example

{baseURL}/light.png?lng=18.17518&lat=59.33115&zoom=15

Parameters

Name type Default Description
style string light The map style. Possible values: light, night, hg_light, hg_night, aerial
format string png Image format. Possible values: png, webp, jpg
lng number 0 The longitude of the geographical centerpoint of the map.
lat number 0 The latitude of the geographical centerpoint of the map.
zoom number 0 The zoom level of the map.
pitch number 0 The pitch (tilt) of the map, measured in degrees away from the plane of the screen (0-85).
bearing number 0 The bearing (rotation) of the map, measured in degrees counter-clockwise from north.
bbox []number The bounds of the map. If specified, it overrides lng, lat and zoom parameters. Example: bbox=17.95787,59.30202,18.10894,59.32849
padding number 0 The padding in pixels around the viewport. Used together with bbox or overlay
width number 512 Image width in pixels
height number 512 Image height in pixels
dpr number 1 Image device pixel ratio
overlay string Features (points, lines, and polygons) to be displayed on the map. Must be a Base64 encoded GeoJSON FeatureCollection. If lng, lat, zoom or bbox are not set, map bounds are calculated from the overlay. See overlay playground.
hillshade boolean false Show hillshading (terrain relief).
shade number 0.5 Hillshade strength (0-1). Used together with hillshade

Examples

Night mode

{baseURL}/night.png?lng=18.17518&lat=59.33115&zoom=15

Hydrographica

{baseURL}/hg_light.png?lng=18.17518&lat=59.33115&zoom=15

Aerial

{baseURL}/aerial.png?lng=18.17518&lat=59.33115&zoom=15

Aerial with both Lantmäteriet and Mapbox satellite

{baseURL}/aerial.webp?lng=18.12379&lat=59.27127&zoom=9.5

Hillshade

{baseURL}/hg_light.png?lng=13.95&lat=68.2&zoom=9&hillshade=true&shade=0.55

Pitch and bearing

{baseURL}/light.png?lng=18.17518&lat=59.33115&zoom=15&pitch=75&bearing=45

BBox and padding

{baseURL}/light.png?bbox=18.19469,59.30319,18.18569,59.33319&padding=50

Width, height and dpr

{baseURL}/light.png?lng=18.17518&lat=59.33115&zoom=15&width=750&height=750&dpr=2

Overlay

{baseURL}/light.png?width=500&height=500&padding=50&dpr=2&over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MDMwMTY0XSxbMTguMDE4MjYyMzAyMDI5OTk2LDU5LjMxNjIwODQ2NjA2NDY5NF0sWzE4LjAyOTAyNzcxNjI1NzEwNCw1OS4zMTQ2NDY1NjQ0MTVdLFsxOC4wMzY3MTQwMjc0NDk0NSw1OS4zMDkzNDczNTAxMTU0Ml0sWzE4LjAzOTAxMjgwMzY5MzAyNiw1OS4zMDYzMTYzMzc0OTI4XSxbMTguMDUzNDQxMTA1NjIwNDY1LDU5LjMwNDMzODM1OTI1MDQ0XSxbMTguMDc0ODc5Nzk1NDc2MzA2LDU5LjMwMjAyMDAyMjg1MTQ4XSxbMTguMDc3NjI2NzM0ODMwMTIsNTkuMzAzMDI0OTc3Nzg0OV0sWzE4LjA3ODMwOTI5NDY4NDcxNSw1OS4zMDMyNTIzNTc0MDM0OTRdLFsxOC4wODA4MjI1MTAzODgzNzMsNTkuMzAzNjUwMjQxODQwMTNdLFsxOC4xMDAzMDk0NTA0ODMxMSw1OS4zMDc3MDA4NzM0NDEzNV0sWzE4LjEwMjY3MjIwMzQ1NjEzNyw1OS4zMTI0NDU2MjY2NTE4NV0sWzE4LjEwODk0NjgxODY4ODc2NCw1OS4zMTYyNDI0MjMxMDUzOV0sWzE4LjEwNjMyOTUyNzk4MTEwMyw1OS4zMTg4MTE2OTE1NzA3NDRdLFsxOC4wODMxMzUxMzcyMTUwNjYsNTkuMzIwNjUzOTEwNzQzMDNdLFsxOC4wODA3MjgxNzIxMzUxNjcsNTkuMzIxMzc5NjA2MDM1OTVdXSwidHlwZSI6IkxpbmVTdHJpbmcifX1dfQ%3D%3D

More examples at overlay playgound

Eniro compatible mode

Eniro compatible mode is a drop-in replacement for Eniros old statmap service (https://statmap.eniro.com/statmap).

URL format

{baseURL}/{version}/eniro.png?{params}

Supported parameters

itype, iwidth, iheight, bbox, scale, g, p

Examples

POIs statmap in search

{baseURL}/eniro.png?bbox=18.572616,59.460102;18.577036,59.462348&iwidth=512&iheight=512&itype=aerial&nologo=true

Route statmap for route list in profile

{baseURL}/eniro.png?iwidth=358&iheight=320&scale=2&itype=hydrographica&g=18.656970,59.570330;18.695090,59.582670;18.696150,59.583080;18.697750,59.583890;18.698540,59.584560;18.698810,59.585240;18.698810,59.585640;18.698540,59.586050;18.698510,59.586120;18.697750,59.587670;18.697750,59.587810;18.697750,59.587940;18.697480,59.588070;18.698010,59.591320;&p=18.65697,59.57033;start_a&start_a=https://storage.googleapis.com/skippo-public-assets/mapContrast_dot.png&p=18.69801,59.59132;stop_b&stop_b=https://storage.googleapis.com/skippo-public-assets/mapContrast_finish.png

Tracks statmap for saved tracks list in profile

{baseURL}/eniro.png?iwidth=358&iheight=320&scale=2&itype=hydrographica&nologo=true&g=16.445220,59.487180;16.445480,59.486070;16.443590,59.482080;16.434370,59.482520;16.428810,59.479290;16.423680,59.478140;16.418170,59.479710;16.420630,59.481340;16.444870,59.488610;16.446040,59.483810;16.438870,59.482330;16.431190,59.480960;16.426580,59.477480;16.422110,59.478870;16.417110,59.481410;16.422800,59.483150;16.445480,59.486070;16.444190,59.482080;16.434710,59.482610;16.429170,59.479450;16.423620,59.477840;16.418380,59.479480;16.420330,59.481130;16.444810,59.488780;16.446040,59.484020;16.439560,59.482330;16.431680,59.481100;16.426580,59.477750;16.422480,59.478850;16.416770,59.481330;16.422780,59.482890;16.445440,59.486350;16.444190,59.482080;16.434710,59.482610;16.429430,59.479630;16.423870,59.477600;16.418810,59.479320;16.420010,59.481040;16.444700,59.488980;16.446060,59.484220;16.439950,59.482330;16.431980,59.481170;16.426660,59.477930;16.422760,59.478800;16.416510,59.481220;16.422590,59.482690;16.445310,59.486640;16.444620,59.482190;16.424280,59.477400;&p=16.44522,59.48718;start_a&start_a=https://storage.googleapis.com/skippo-public-assets/Track_sum_start.png&p=16.42428,59.4774;stop_b&stop_b=https://storage.googleapis.com/skippo-public-assets/Track_sum_goal.png