Simple map functionality with capabilities of showing markers and lines.
The map is created from parameters defined in the URL. The simplest map only needs parameters for latitude and longitude coordinates defining the origo and a zoom level, everything else is optional.
title
is probably the only parameter that may need an encoded value (since all the other values are numbers or booleans).
origo
parameter.
origo=69.00,19.00
.
zoom
level.
zoom=12
.
title=My%20own%20special%20title
.
pointN
is an array of coordinates for which a polyline should be drawn between each consecutive point (order is therefore important). A polyline can be shown between (at least two) coordinates defined with the pointN
parameter. Each point is defined by latitude and longitude coordinates.
point0=69.059969,10.9575&point0=55.336944,10.9575
.
point0=6,1&point0=6,2&point0=7,1&point1=8,5&point1=7,7&point1=8,9&point1=7,3
will draw two distinct polylines.
marker
is an array of coordinates where a marker should be placed. Markers can be shown for (one of several) defined points.
marker=6.90,7.23
or marker=6.90,7.23&marker=69.2203,17.1234
.
showMarkerForOrigo=true
).
showCoordinates=true
).
showCircle=true
).
showRectangle=true
).
usePolygon=true
). This means that the last and first points in every list of points are connected with an implicit line.
A link to a similar view in Google Maps is also shown.
An example of a complete URL:
Here is a small form to help you create correct URLs for the NNM Map Viewer.
Here is a simple tool which you can use to URL encode your parameter values.
Here is a simple tool which you can use to convert coordinates in DMS (degrees, minutes, seconds) to decimal. For example 69°15'20"
(DMS) is the same as 69.255556
(decimal).
NNM Map Viewer was originally implemented by Anders Gustafson in November 2018.
point
is no longer used (instead use pointN
, where N can be 0-9).
usePolygon
).
Some of the following may be done in a future version of NNM Map Viewer.