Simple map functionality with capabilities of showing markers and lines.
The map is created from parameters defined in the URL.
origo
parameter. Example: origo=69.00,19.00
.
zoom
level.
title=My%20own%20special%20title
.
point
is an array of coordinates for which a polygon should be drawn between each consecutive point (order is therefore important). A polygon can be shown between (at least two) coordinates defined with the point
parameter. Each point is defined by latitude and longitude values. Example: point=-1,2&point=-2,-1&point=1,-2&point=2,1
.
showMarkerForOrigo=true
).
marker
is an array of coordinates where a marker should be placed. Markers can be shown for (one of several) defined points. Example: marker=6.90,7.23
or marker=6.90,7.23&marker=69.2203,17.1234
.
title
is probably the only parameter that may need an encoded value (since all the other values are numbers or booleans).
If you click in the map, the current coordinates will popup.
A link to a similar view in Google Maps is also shown.
An example of a complete URL:
http://anders.nemonisimors.com/projects/map/v2.0/mapViewer.html?title=Mount%20Everest&origo=27.987907,86.924852&zoom=18&showMarkerForOrigo=true
Here is a simple tool which you can use to URL encode your parameter values.
NNM Map Viewer was originally implemented by Anders Gustafson in November 2018.
Map functionality provided with the help from Leaflet and OpenStreetMap contributors. All the credits go to them.