@@ -178,56 +178,68 @@ fun parseAnimationCurve(value: String): AnimationCurve {
178
178
}
179
179
}
180
180
181
- fun BasemapStyle.getJsonValue (): String? {
181
+ fun BasemapStyle.getJsonValue (): String {
182
182
return when (this ) {
183
183
BasemapStyle .ArcGISImagery -> " arcgisImagery"
184
184
BasemapStyle .ArcGISImageryStandard -> " arcgisImageryStandard"
185
185
BasemapStyle .ArcGISImageryLabels -> " arcgisImageryLabels"
186
186
BasemapStyle .ArcGISLightGray -> " arcgisLightGray"
187
- BasemapStyle .ArcGISLightGray -> null
188
- BasemapStyle .ArcGISLightGrayLabels -> null
187
+ BasemapStyle .ArcGISLightGrayBase -> " arcgisLightGrayBase "
188
+ BasemapStyle .ArcGISLightGrayLabels -> " arcgisLightGrayLabels "
189
189
BasemapStyle .ArcGISDarkGray -> " arcgisDarkGray"
190
- BasemapStyle .ArcGISDarkGrayBase -> null
191
- BasemapStyle .ArcGISDarkGrayLabels -> null
190
+ BasemapStyle .ArcGISDarkGrayBase -> " arcgisDarkGrayBase "
191
+ BasemapStyle .ArcGISDarkGrayLabels -> " arcgisDarkGrayLabels "
192
192
BasemapStyle .ArcGISNavigation -> " arcgisNavigation"
193
193
BasemapStyle .ArcGISNavigationNight -> " arcgisNavigationNight"
194
194
BasemapStyle .ArcGISStreets -> " arcgisStreets"
195
+ BasemapStyle .ArcGISStreetsRelief -> " arcgisStreetsRelief"
196
+ BasemapStyle .ArcGISStreetsReliefBase -> " arcgisStreetsReliefBase"
195
197
BasemapStyle .ArcGISStreetsNight -> " arcgisStreetsNight"
196
- BasemapStyle .OsmStreetsRelief -> " arcgisStreetsRelief"
197
198
BasemapStyle .ArcGISTopographic -> " arcgisTopographic"
199
+ BasemapStyle .ArcGISTopographicBase -> " arcgisTopographicBase"
198
200
BasemapStyle .ArcGISOceans -> " arcgisOceans"
199
- BasemapStyle .ArcGISOceansBase -> null
200
- BasemapStyle .ArcGISOceansLabels -> null
201
+ BasemapStyle .ArcGISOceansBase -> " arcgisOceansBase "
202
+ BasemapStyle .ArcGISOceansLabels -> " arcgisOceansLabels "
201
203
BasemapStyle .ArcGISTerrain -> " arcgisTerrain"
202
- BasemapStyle .ArcGISTerrainBase -> null
203
- BasemapStyle .ArcGISTerrainDetail -> null
204
+ BasemapStyle .ArcGISTerrainBase -> " arcgisTerrainBase "
205
+ BasemapStyle .ArcGISTerrainDetail -> " arcgisTerrainDetail "
204
206
BasemapStyle .ArcGISCommunity -> " arcgisCommunity"
205
207
BasemapStyle .ArcGISChartedTerritory -> " arcgisChartedTerritory"
208
+ BasemapStyle .ArcGISChartedTerritoryBase -> " arcgisChartedTerritoryBase"
206
209
BasemapStyle .ArcGISColoredPencil -> " arcgisColoredPencil"
207
210
BasemapStyle .ArcGISNova -> " arcgisNova"
208
211
BasemapStyle .ArcGISModernAntique -> " arcgisModernAntique"
212
+ BasemapStyle .ArcGISModernAntiqueBase -> " arcgisModernAntiqueBase"
209
213
BasemapStyle .ArcGISMidcentury -> " arcgisMidcentury"
210
214
BasemapStyle .ArcGISNewspaper -> " arcgisNewspaper"
211
215
BasemapStyle .ArcGISHillshadeLight -> " arcgisHillshadeLight"
212
216
BasemapStyle .ArcGISHillshadeDark -> " arcgisHillshadeDark"
213
- BasemapStyle .ArcGISStreetsReliefBase -> null
214
- BasemapStyle .ArcGISTopographicBase -> null
215
- BasemapStyle .ArcGISChartedTerritoryBase -> null
216
- BasemapStyle .ArcGISModernAntiqueBase -> null
217
+ BasemapStyle .ArcGISOutdoor -> " arcgisOutdoor"
218
+ BasemapStyle .ArcGISHumanGeography -> " arcgisHumanGeography"
219
+ BasemapStyle .ArcGISHumanGeographyBase -> " arcgisHumanGeographyBase"
220
+ BasemapStyle .ArcGISHumanGeographyDetail -> " arcgisHumanGeographyDetail"
221
+ BasemapStyle .ArcGISHumanGeographyLabels -> " arcgisHumanGeographyLabels"
222
+ BasemapStyle .ArcGISHumanGeographyDark -> " arcgisHumanGeographyDark"
223
+ BasemapStyle .ArcGISHumanGeographyDarkBase -> " arcgisHumanGeographyDarkBase"
224
+ BasemapStyle .ArcGISHumanGeographyDarkDetail -> " arcgisHumanGeographyDarkDetail"
225
+ BasemapStyle .ArcGISHumanGeographyDarkLabels -> " arcgisHumanGeographyDarkLabels"
217
226
BasemapStyle .OsmStandard -> " osmStandard"
218
227
BasemapStyle .OsmStandardRelief -> " osmStandardRelief"
219
- BasemapStyle .OsmStandardReliefBase -> null
228
+ BasemapStyle .OsmStandardReliefBase -> " osmStandardReliefBase "
220
229
BasemapStyle .OsmStreets -> " osmStreets"
221
230
BasemapStyle .OsmStreetsRelief -> " osmStreetsRelief"
222
- BasemapStyle .OsmStreetsReliefBase -> null
231
+ BasemapStyle .OsmStreetsReliefBase -> " osmStreetsReliefBase "
223
232
BasemapStyle .OsmLightGray -> " osmLightGray"
224
- BasemapStyle .OsmLightGrayBase -> null
225
- BasemapStyle .OsmLightGrayLabels -> null
233
+ BasemapStyle .OsmLightGrayBase -> " osmLightGrayBase "
234
+ BasemapStyle .OsmLightGrayLabels -> " osmLightGrayLabels "
226
235
BasemapStyle .OsmDarkGray -> " osmDarkGray"
227
- BasemapStyle .OsmDarkGrayBase -> null
228
- BasemapStyle .OsmDarkGrayLabels -> null
229
- BasemapStyle .OsmHybrid -> " hybrid"
230
- else -> null
236
+ BasemapStyle .OsmDarkGrayBase -> " osmDarkGrayBase"
237
+ BasemapStyle .OsmDarkGrayLabels -> " osmDarkGrayLabels"
238
+ BasemapStyle .OsmBlueprint -> " osmBlueprint"
239
+ BasemapStyle .OsmHybrid -> " osmHybrid"
240
+ BasemapStyle .OsmHybridDetail -> " osmHybridDetail"
241
+ BasemapStyle .OsmNavigation -> " osmNavigation"
242
+ BasemapStyle .OsmNavigationDark -> " osmNavigationDark"
231
243
}
232
244
}
233
245
@@ -237,31 +249,62 @@ fun parseBasemapStyle(value: String): BasemapStyle? {
237
249
" arcgisImageryStandard" -> BasemapStyle .ArcGISImageryStandard
238
250
" arcgisImageryLabels" -> BasemapStyle .ArcGISImageryLabels
239
251
" arcgisLightGray" -> BasemapStyle .ArcGISLightGray
252
+ " arcgisLightGrayBase" -> BasemapStyle .ArcGISLightGrayBase
253
+ " arcgisLightGrayLabels" -> BasemapStyle .ArcGISLightGrayLabels
240
254
" arcgisDarkGray" -> BasemapStyle .ArcGISDarkGray
255
+ " arcgisDarkGrayBase" -> BasemapStyle .ArcGISDarkGrayBase
256
+ " arcgisDarkGrayLabels" -> BasemapStyle .ArcGISDarkGrayLabels
241
257
" arcgisNavigation" -> BasemapStyle .ArcGISNavigation
242
258
" arcgisNavigationNight" -> BasemapStyle .ArcGISNavigationNight
243
259
" arcgisStreets" -> BasemapStyle .ArcGISStreets
260
+ " arcgisStreetsRelief" -> BasemapStyle .ArcGISStreetsRelief
261
+ " arcgisStreetsReliefBase" -> BasemapStyle .ArcGISStreetsReliefBase
244
262
" arcgisStreetsNight" -> BasemapStyle .ArcGISStreetsNight
245
- " arcgisStreetsRelief" -> BasemapStyle .OsmStreetsRelief
246
263
" arcgisTopographic" -> BasemapStyle .ArcGISTopographic
264
+ " arcgisTopographicBase" -> BasemapStyle .ArcGISTopographicBase
247
265
" arcgisOceans" -> BasemapStyle .ArcGISOceans
266
+ " arcgisOceansBase" -> BasemapStyle .ArcGISOceansBase
267
+ " arcgisOceansLabels" -> BasemapStyle .ArcGISOceansLabels
248
268
" arcgisTerrain" -> BasemapStyle .ArcGISTerrain
269
+ " arcgisTerrainBase" -> BasemapStyle .ArcGISTerrainBase
270
+ " arcgisTerrainDetail" -> BasemapStyle .ArcGISTerrainDetail
249
271
" arcgisCommunity" -> BasemapStyle .ArcGISCommunity
250
272
" arcgisChartedTerritory" -> BasemapStyle .ArcGISChartedTerritory
273
+ " arcgisChartedTerritoryBase" -> BasemapStyle .ArcGISChartedTerritoryBase
251
274
" arcgisColoredPencil" -> BasemapStyle .ArcGISColoredPencil
252
275
" arcgisNova" -> BasemapStyle .ArcGISNova
253
276
" arcgisModernAntique" -> BasemapStyle .ArcGISModernAntique
277
+ " arcgisModernAntiqueBase" -> BasemapStyle .ArcGISModernAntiqueBase
254
278
" arcgisMidcentury" -> BasemapStyle .ArcGISMidcentury
255
279
" arcgisNewspaper" -> BasemapStyle .ArcGISNewspaper
256
280
" arcgisHillshadeLight" -> BasemapStyle .ArcGISHillshadeLight
257
281
" arcgisHillshadeDark" -> BasemapStyle .ArcGISHillshadeDark
282
+ " arcgisOutdoor" -> BasemapStyle .ArcGISOutdoor
283
+ " arcgisHumanGeography" -> BasemapStyle .ArcGISHumanGeography
284
+ " arcgisHumanGeographyBase" -> BasemapStyle .ArcGISHumanGeographyBase
285
+ " arcgisHumanGeographyDetail" -> BasemapStyle .ArcGISHumanGeographyDetail
286
+ " arcgisHumanGeographyLabels" -> BasemapStyle .ArcGISHumanGeographyLabels
287
+ " arcgisHumanGeographyDark" -> BasemapStyle .ArcGISHumanGeographyDark
288
+ " arcgisHumanGeographyDarkBase" -> BasemapStyle .ArcGISHumanGeographyDarkBase
289
+ " arcgisHumanGeographyDarkDetail" -> BasemapStyle .ArcGISHumanGeographyDarkDetail
290
+ " arcgisHumanGeographyDarkLabels" -> BasemapStyle .ArcGISHumanGeographyDarkLabels
258
291
" osmStandard" -> BasemapStyle .OsmStandard
259
292
" osmStandardRelief" -> BasemapStyle .OsmStandardRelief
293
+ " osmStandardReliefBase" -> BasemapStyle .OsmStandardReliefBase
260
294
" osmStreets" -> BasemapStyle .OsmStreets
261
295
" osmStreetsRelief" -> BasemapStyle .OsmStreetsRelief
296
+ " osmStreetsReliefBase" -> BasemapStyle .OsmStreetsReliefBase
262
297
" osmLightGray" -> BasemapStyle .OsmLightGray
298
+ " osmLightGrayBase" -> BasemapStyle .OsmLightGrayBase
299
+ " osmLightGrayLabels" -> BasemapStyle .OsmLightGrayLabels
263
300
" osmDarkGray" -> BasemapStyle .OsmDarkGray
264
- " hybrid" -> BasemapStyle .OsmHybrid
301
+ " osmDarkGrayBase" -> BasemapStyle .OsmDarkGrayBase
302
+ " osmDarkGrayLabels" -> BasemapStyle .OsmDarkGrayLabels
303
+ " osmBlueprint" -> BasemapStyle .OsmBlueprint
304
+ " osmHybrid" -> BasemapStyle .OsmHybrid
305
+ " osmHybridDetail" -> BasemapStyle .OsmHybridDetail
306
+ " osmNavigation" -> BasemapStyle .OsmNavigation
307
+ " osmNavigationDark" -> BasemapStyle .OsmNavigationDark
265
308
else -> null
266
309
}
267
310
}
0 commit comments