APG|SGA
infosnowAPI Type 1API Type 2Divers

Divers - Map Parameters

There are several parameters to configure interactive maps of the second generation:

Don't forget that the first parameter is always prefixed with ?, all others with &.

Map Configurator

ID

This is the id of the resort and required (ask infosnow support if unknown).

id=54

Map

There may exist several maps for a certain resort, therefore this parameter is required as well (ask infosnow support if unknown).

tab=map-su

Language

Default language is german.

lang=de|fr|en|it

Default view

A parameter value of 1 loads the street view, 2 loads the satellite view. If missing, the panorama view will be loaded (if available).

sat=1|2

Versions

An interactive map may consist of several versions. If this parameter is missing, the whole destination will be loaded. If set, then certain resorts are excluded (must be configured by APG).

This parameter affects the objects visible on the panorama view and the street view.

v=1 ...n

Digital signage

If this parameter is set to 1 the menu and toolbar will disappear. Useful for use with digital signage solutions.

tv=1

Preview

This parameter disables interactivity. If the map is clicked on, the fully interactive map is loaded in a new tab/window.

In this case, the map will not zoom to be fully visible but to fill the defined viewport. You may need to use it in combination with the zoom-parameter to reach expected results (see below).

mini=1

Hide objects

You can hide Objects in general or in case they are closed.

Comma separated list of objects to hide.

All supported values are listed below.

hide=lifts,slopes,routes,icons
hide-closed=lifts,slopes,routes,icons

Menu switches

If a button is available to switch on slopes, the slopes are switched off in most cases by default. You can turn them on using the following parameter.

slopes=1

Fitting

Make Map fitting the viewport. Cannot be used in combination with zoom-Parameter.

fit=1|2

1: Fit the whole map (may have grey borders).

2: Fit the map without borders (map may be trimmed).

minZoom

Limit minimal zoom.

minZoom=1

1: Make Map fitting the viewport at minimum.

Offset X

Pan map by amount of pixel to left or right, starting from center point.

As all maps are 1920 x 1080px, the range is -960 ... 960.

x=-960

Map sizing (experts only)

By default, the map sizes the way so the whole panorama is fully visible. But you can zoom on specific portions of the map.

Cannot be used with fit-Parameter.

The coordinate system always is 1920 px in with and 1080px in height.

Beware: not all maps are 1920 x 1080px in size, but the coordinate system always is. You should take a screenshot and then size the picture to 1080 px in height an center it on a drawing board with 1920 x 1080 px. Now it's easy to find the pixel points of interest.

You should take into account that it's best if tiles the size of 256 x 256 px fit in the viewport because they are definining the zoomlevels.

zoom=x,y,w,h

For Responsive solutions it is usually best to set width (w) and height (h) to like 1 (pixel), so the defined area fits in the viewport in any case. In this case, you only have to find the x and y positions (in pixels) that fit your needs best.

zoom=1500,800,1,1

If this solution does not work for you, then you have to experiment to find the optimal box size.

The chosen box size should usually be smaller than the smallest viewport that can result from your Responsive implementation.