-
Notifications
You must be signed in to change notification settings - Fork 505
Expand file tree
/
Copy pathaddMiniMap.Rd
More file actions
89 lines (70 loc) · 3.41 KB
/
addMiniMap.Rd
File metadata and controls
89 lines (70 loc) · 3.41 KB
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
37
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plugin-minimap.R
\name{addMiniMap}
\alias{addMiniMap}
\title{Add a minimap to the Map
\url{https://github.com/Norkart/Leaflet-MiniMap}}
\usage{
addMiniMap(map, position = "bottomright", width = 150, height = 150,
collapsedWidth = 19, collapsedHeight = 19, zoomLevelOffset = -5,
zoomLevelFixed = FALSE, centerFixed = FALSE, zoomAnimation = FALSE,
toggleDisplay = FALSE, autoToggleDisplay = FALSE, minimized = FALSE,
aimingRectOptions = list(color = "#ff7800", weight = 1, clickable = FALSE),
shadowRectOptions = list(color = "#000000", weight = 1, clickable = FALSE,
opacity = 0, fillOpacity = 0), strings = list(hideText = "Hide MiniMap",
showText = "Show MiniMap"), tiles = NULL, mapOptions = list())
}
\arguments{
\item{map}{a map widget object}
\item{position}{The standard Leaflet.Control position parameter,
used like all the other controls.
Defaults to 'bottomright'.}
\item{width}{The width of the minimap in pixels. Defaults to 150.}
\item{height}{The height of the minimap in pixels. Defaults to 150.}
\item{collapsedWidth}{The width of the toggle marker and the minimap
when collapsed, in pixels. Defaults to 19.}
\item{collapsedHeight}{The height of the toggle marker and the minimap
when collapsed, in pixels. Defaults to 19.}
\item{zoomLevelOffset}{The offset applied to the zoom in the minimap compared
to the zoom of the main map. Can be positive or negative, defaults to -5.}
\item{zoomLevelFixed}{Overrides the offset to apply a fixed zoom level to
the minimap regardless of the main map zoom.
Set it to any valid zoom level, if unset zoomLevelOffset is used instead.}
\item{centerFixed}{Applies a fixed position to the minimap regardless of
the main map's view / position. Prevents panning the minimap, but does
allow zooming (both in the minimap and the main map).
If the minimap is zoomed, it will always zoom around the centerFixed point.
You can pass in a LatLng-equivalent object. Defaults to false.}
\item{zoomAnimation}{Sets whether the minimap should have an animated zoom.
(Will cause it to lag a bit after the movement of the main map.)
Defaults to false.}
\item{toggleDisplay}{Sets whether the minimap should have a button to minimise it.
Defaults to false.}
\item{autoToggleDisplay}{Sets whether the minimap should hide automatically,
if the parent map bounds does not fit within the minimap bounds.
Especially useful when 'zoomLevelFixed' is set.}
\item{minimized}{Sets whether the minimap should start in a minimized position.}
\item{aimingRectOptions}{Sets the style of the aiming rectangle by passing in
a Path.Options (\url{http://leafletjs.com/reference.html#path-options}) object.
(Clickable will always be overridden and set to false.)}
\item{shadowRectOptions}{Sets the style of the aiming shadow rectangle by passing in
a Path.Options (\url{http://leafletjs.com/reference.html#path-options}) object.
(Clickable will always be overridden and set to false.)}
\item{strings}{Overrides the default strings allowing for translation.}
\item{tiles}{URL for tiles or one of the pre-defined providers.}
\item{mapOptions}{Sets Leaflet options for the MiniMap map.
It does not override the MiniMap default map options but extends them.}
}
\description{
Add a minimap to the Map
\url{https://github.com/Norkart/Leaflet-MiniMap}
}
\examples{
library(leaflet)
leaf <- leaflet() \%>\%
addTiles() \%>\%
addMiniMap()
}
\seealso{
\code{\link{providers}}
}