File tree Expand file tree Collapse file tree 2 files changed +16
-11
lines changed
Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -144,25 +144,32 @@ There are currently two projection modes implemented.
144144
145145** Use a single projection**
146146
147+ ``` ts
147148mode : " mercator"
149+ ```
148150
149151** Change projection at zoom level**
150152
153+ ``` ts
151154mode : [" step" , [" zoom" ],
152155 " globe" ,
153156 10 , " globe" ,
154157 12 , " mercator"
155158]
159+ ```
156160
157161** Animate between different projections based on zoom level**
158162
163+ ``` ts
159164mode : [" interpolate-projection" , [" linear" ], [" zoom" ],
160165 0 ," globe" ,
161166 10 ," globe" ,
162167 12 ," mercator"
163168]
169+ ```
164170
165171** Use a projection transition intermediate**
166172
173+ ``` ts
167174mode : [" globe" , " mercator" , 0.7 ]
168-
175+ ```
Original file line number Diff line number Diff line change 129129 "type" : " projection" ,
130130 "doc" : " The projection type. Can be specified as a string, or as an expression for supported projection types." ,
131131 "example" : {
132- "projection" : {
133- "mode" : [
134- " interpolate-projection" ,
135- [" linear" ],
136- [" zoom" ],
137- 0 , " globe" ,
138- 10 , " globe" ,
139- 12 , " mercator"
140- ]
141- }
132+ "mode" : [
133+ " interpolate-projection" ,
134+ [" linear" ],
135+ [" zoom" ],
136+ 0 , " globe" ,
137+ 10 , " globe" ,
138+ 12 , " mercator"
139+ ]
142140 }
143141 },
144142 "terrain" : {
You can’t perform that action at this time.
0 commit comments