-
Notifications
You must be signed in to change notification settings - Fork 507
/
Copy pathmap-options.Rd
213 lines (171 loc) · 6.32 KB
/
map-options.Rd
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/layers.R
\name{tileOptions}
\alias{tileOptions}
\alias{gridOptions}
\alias{WMSTileOptions}
\alias{popupOptions}
\alias{labelOptions}
\alias{markerOptions}
\alias{markerClusterOptions}
\alias{pathOptions}
\title{Extra options for map elements and layers}
\usage{
tileOptions(
minZoom = 0,
maxZoom = 18,
maxNativeZoom = NULL,
tileSize = 256,
subdomains = "abc",
errorTileUrl = "",
tms = FALSE,
noWrap = FALSE,
zoomOffset = 0,
zoomReverse = FALSE,
opacity = 1,
zIndex = 1,
unloadInvisibleTiles = NULL,
updateWhenIdle = NULL,
detectRetina = FALSE,
...
)
gridOptions(
tileSize = 256,
updateWhenIdle = NULL,
zIndex = 1,
minZoom = 0,
maxZoom = NULL,
...
)
WMSTileOptions(
styles = "",
format = "image/jpeg",
transparent = FALSE,
version = "1.1.1",
crs = NULL,
...
)
popupOptions(
maxWidth = 300,
minWidth = 50,
maxHeight = NULL,
autoPan = TRUE,
keepInView = FALSE,
closeButton = TRUE,
zoomAnimation = NULL,
closeOnClick = NULL,
className = "",
...
)
labelOptions(
interactive = FALSE,
clickable = NULL,
noHide = NULL,
permanent = FALSE,
className = "",
direction = "auto",
offset = c(0, 0),
opacity = 1,
textsize = "10px",
textOnly = FALSE,
style = NULL,
zoomAnimation = NULL,
sticky = TRUE,
...
)
markerOptions(
interactive = TRUE,
clickable = NULL,
draggable = FALSE,
keyboard = TRUE,
title = "",
alt = "",
zIndexOffset = 0,
opacity = 1,
riseOnHover = FALSE,
riseOffset = 250,
...
)
markerClusterOptions(
showCoverageOnHover = TRUE,
zoomToBoundsOnClick = TRUE,
spiderfyOnMaxZoom = TRUE,
removeOutsideVisibleBounds = TRUE,
spiderLegPolylineOptions = list(weight = 1.5, color = "#222", opacity = 0.5),
freezeAtZoom = FALSE,
...
)
pathOptions(
lineCap = NULL,
lineJoin = NULL,
clickable = NULL,
interactive = TRUE,
pointerEvents = NULL,
className = "",
...
)
}
\arguments{
\item{minZoom, maxZoom, maxNativeZoom, tileSize, subdomains, errorTileUrl, tms, noWrap, zoomOffset, zoomReverse, zIndex, unloadInvisibleTiles, updateWhenIdle, detectRetina}{the tile layer options; see
\url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#tilelayer}}
\item{opacity}{Tooltip container opacity. Ranges from 0 to 1. Default value is \code{1} (different from leaflet.js \code{0.9}); see \url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#tooltip-opacity}}
\item{...}{extra options passed to underlying JavaScript object constructor.}
\item{styles}{comma-separated list of WMS styles}
\item{format}{WMS image format (use \code{"image/png"} for layers with
transparency)}
\item{transparent}{if \code{TRUE}, the WMS service will return images with
transparency}
\item{version}{version of the WMS service to use}
\item{crs}{Coordinate Reference System to use for the WMS requests, defaults.}
\item{maxWidth, minWidth, maxHeight, autoPan, keepInView, closeButton, closeOnClick}{popup options; see \url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#popup-option}}
\item{zoomAnimation}{deprecated. See \url{https://github.com/Leaflet/Leaflet/blob/master/CHANGELOG.md#api-changes-5}}
\item{className}{a CSS class name set on an element}
\item{interactive}{whether the element emits mouse events}
\item{clickable}{DEPRECATED! Use the \code{interactive} argument.}
\item{noHide, direction, offset, permanent}{label options; see \url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#tooltip-option}}
\item{textsize}{Change the text size of a single tooltip}
\item{textOnly}{Display only the text, no regular surrounding box.}
\item{style}{list of css style to be added to the tooltip}
\item{sticky}{If true, the tooltip will follow the mouse instead of being fixed at the feature center. Default value is \code{TRUE} (different from leaflet.js \code{FALSE}); see \url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#tooltip-sticky}}
\item{draggable, keyboard, title, alt, zIndexOffset, riseOnHover, riseOffset}{marker options; see \url{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#marker-option}}
\item{showCoverageOnHover}{when you mouse over a cluster it shows the bounds
of its markers}
\item{zoomToBoundsOnClick}{when you click a cluster we zoom to its bounds}
\item{spiderfyOnMaxZoom}{when you click a cluster at the bottom zoom level we
spiderfy it so you can see all of its markers}
\item{removeOutsideVisibleBounds}{clusters and markers too far from the
viewport are removed from the map for performance}
\item{spiderLegPolylineOptions}{Allows you to specify
\href{https://web.archive.org/web/20220702182250/https://leafletjs.com/reference-1.3.4.html#polyline-option}{PolylineOptions}
to style spider legs. By default, they are
\code{\{weight: 1.5, color: "#222", opacity: 0.5 \}}.}
\item{freezeAtZoom}{Allows you to freeze cluster expansion to a zoom level.
Can be a zoom level e.g., 10, 12 or "max" or "maxKeepSpiderify".
See \url{https://github.com/ghybs/Leaflet.MarkerCluster.Freezable#api-reference}.}
\item{lineCap}{a string that defines \href{https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap}{shape to be used at the end}
of the stroke.}
\item{lineJoin}{a string that defines \href{https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linejoin}{shape to be used at the corners}
of the stroke.}
\item{pointerEvents}{sets the \code{pointer-events} attribute on the path if
SVG backend is used}
}
\description{
The rest of all possible options for map elements and layers that are not
listed in the layer functions.
}
\section{Functions}{
\itemize{
\item \code{tileOptions()}: Options for tile layers
\item \code{gridOptions()}: Options for grid layers
\item \code{WMSTileOptions()}: Options for WMS tile layers
\item \code{popupOptions()}: Options for popups
\item \code{labelOptions()}: Options for labels
\item \code{markerOptions()}: Options for markers
\item \code{markerClusterOptions()}: Options for marker clusters
\item \code{pathOptions()}: Options for vector layers (polylines, polygons,
rectangles, and circles, etc)
}}
\seealso{
\code{\link[=leafletCRS]{leafletCRS()}}
to map CRS (don't change this if you're not sure what it means)
}