README.md 1.13 KB
Newer Older
Tomas Pettersson's avatar
Tomas Pettersson committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# leaflet-navigation-control


## Description
A leaflet control for used navigation. Built with uikit.

![](image.png)

Note that a component must be extending L.Control.

## Installation

You will need node.js, npm and bower for demo

### bower
`bower install https://git.smhi.se/stw/leaflet-navigation-control.git --save`

## Demo

Go to demo folder and install package.json

	> npm install

Start server in demo folder

	> node server.js
	Server started on http://localhost:8080...

Open browser on http://localhost:8080/demo

## Usage example


		var language = 'en';

        var navLangData = {
Tomas Pettersson's avatar
Tomas Pettersson committed
37
        	"tMarkerstart":   "Click map to place point.",        	
Tomas Pettersson's avatar
Tomas Pettersson committed
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
        	"cCoordinates": "Coordinates"
        };

        var navControl = new L.Control.Navigation({
            position: 'topright',
   			"lang" : language,
   			"langdata" : navLangData,
   			"proxy" : 'proxy',
   			"url" : '/demo'
        });
        map.addControl(coordinatesControl); 

### Options


## Copyright and License

## Contact information

Tomas Pettersson tomas.pettersson@smhi.se


## Credits and acknowledgements


## Known bugs

## Troubleshooting

## Changelog