@@ -178,56 +178,68 @@ fun parseAnimationCurve(value: String): AnimationCurve {
178178    }
179179}
180180
181- fun  BasemapStyle.getJsonValue (): String?   {
181+ fun  BasemapStyle.getJsonValue (): String  {
182182    return  when  (this ) {
183183        BasemapStyle .ArcGISImagery  ->  " arcgisImagery" 
184184        BasemapStyle .ArcGISImageryStandard  ->  " arcgisImageryStandard" 
185185        BasemapStyle .ArcGISImageryLabels  ->  " arcgisImageryLabels" 
186186        BasemapStyle .ArcGISLightGray  ->  " arcgisLightGray" 
187-         BasemapStyle .ArcGISLightGray  ->  null 
188-         BasemapStyle .ArcGISLightGrayLabels  ->  null 
187+         BasemapStyle .ArcGISLightGrayBase  ->  " arcgisLightGrayBase " 
188+         BasemapStyle .ArcGISLightGrayLabels  ->  " arcgisLightGrayLabels " 
189189        BasemapStyle .ArcGISDarkGray  ->  " arcgisDarkGray" 
190-         BasemapStyle .ArcGISDarkGrayBase  ->  null 
191-         BasemapStyle .ArcGISDarkGrayLabels  ->  null 
190+         BasemapStyle .ArcGISDarkGrayBase  ->  " arcgisDarkGrayBase " 
191+         BasemapStyle .ArcGISDarkGrayLabels  ->  " arcgisDarkGrayLabels " 
192192        BasemapStyle .ArcGISNavigation  ->  " arcgisNavigation" 
193193        BasemapStyle .ArcGISNavigationNight  ->  " arcgisNavigationNight" 
194194        BasemapStyle .ArcGISStreets  ->  " arcgisStreets" 
195+         BasemapStyle .ArcGISStreetsRelief  ->  " arcgisStreetsRelief" 
196+         BasemapStyle .ArcGISStreetsReliefBase  ->  " arcgisStreetsReliefBase" 
195197        BasemapStyle .ArcGISStreetsNight  ->  " arcgisStreetsNight" 
196-         BasemapStyle .OsmStreetsRelief  ->  " arcgisStreetsRelief" 
197198        BasemapStyle .ArcGISTopographic  ->  " arcgisTopographic" 
199+         BasemapStyle .ArcGISTopographicBase  ->  " arcgisTopographicBase" 
198200        BasemapStyle .ArcGISOceans  ->  " arcgisOceans" 
199-         BasemapStyle .ArcGISOceansBase  ->  null 
200-         BasemapStyle .ArcGISOceansLabels  ->  null 
201+         BasemapStyle .ArcGISOceansBase  ->  " arcgisOceansBase " 
202+         BasemapStyle .ArcGISOceansLabels  ->  " arcgisOceansLabels " 
201203        BasemapStyle .ArcGISTerrain  ->  " arcgisTerrain" 
202-         BasemapStyle .ArcGISTerrainBase  ->  null 
203-         BasemapStyle .ArcGISTerrainDetail  ->  null 
204+         BasemapStyle .ArcGISTerrainBase  ->  " arcgisTerrainBase " 
205+         BasemapStyle .ArcGISTerrainDetail  ->  " arcgisTerrainDetail " 
204206        BasemapStyle .ArcGISCommunity  ->  " arcgisCommunity" 
205207        BasemapStyle .ArcGISChartedTerritory  ->  " arcgisChartedTerritory" 
208+         BasemapStyle .ArcGISChartedTerritoryBase  ->  " arcgisChartedTerritoryBase" 
206209        BasemapStyle .ArcGISColoredPencil  ->  " arcgisColoredPencil" 
207210        BasemapStyle .ArcGISNova  ->  " arcgisNova" 
208211        BasemapStyle .ArcGISModernAntique  ->  " arcgisModernAntique" 
212+         BasemapStyle .ArcGISModernAntiqueBase  ->  " arcgisModernAntiqueBase" 
209213        BasemapStyle .ArcGISMidcentury  ->  " arcgisMidcentury" 
210214        BasemapStyle .ArcGISNewspaper  ->  " arcgisNewspaper" 
211215        BasemapStyle .ArcGISHillshadeLight  ->  " arcgisHillshadeLight" 
212216        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" 
217226        BasemapStyle .OsmStandard  ->  " osmStandard" 
218227        BasemapStyle .OsmStandardRelief  ->  " osmStandardRelief" 
219-         BasemapStyle .OsmStandardReliefBase  ->  null 
228+         BasemapStyle .OsmStandardReliefBase  ->  " osmStandardReliefBase " 
220229        BasemapStyle .OsmStreets  ->  " osmStreets" 
221230        BasemapStyle .OsmStreetsRelief  ->  " osmStreetsRelief" 
222-         BasemapStyle .OsmStreetsReliefBase  ->  null 
231+         BasemapStyle .OsmStreetsReliefBase  ->  " osmStreetsReliefBase " 
223232        BasemapStyle .OsmLightGray  ->  " osmLightGray" 
224-         BasemapStyle .OsmLightGrayBase  ->  null 
225-         BasemapStyle .OsmLightGrayLabels  ->  null 
233+         BasemapStyle .OsmLightGrayBase  ->  " osmLightGrayBase " 
234+         BasemapStyle .OsmLightGrayLabels  ->  " osmLightGrayLabels " 
226235        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" 
231243    }
232244}
233245
@@ -237,31 +249,62 @@ fun parseBasemapStyle(value: String): BasemapStyle? {
237249        " arcgisImageryStandard"   ->  BasemapStyle .ArcGISImageryStandard 
238250        " arcgisImageryLabels"   ->  BasemapStyle .ArcGISImageryLabels 
239251        " arcgisLightGray"   ->  BasemapStyle .ArcGISLightGray 
252+         " arcgisLightGrayBase"   ->  BasemapStyle .ArcGISLightGrayBase 
253+         " arcgisLightGrayLabels"   ->  BasemapStyle .ArcGISLightGrayLabels 
240254        " arcgisDarkGray"   ->  BasemapStyle .ArcGISDarkGray 
255+         " arcgisDarkGrayBase"   ->  BasemapStyle .ArcGISDarkGrayBase 
256+         " arcgisDarkGrayLabels"   ->  BasemapStyle .ArcGISDarkGrayLabels 
241257        " arcgisNavigation"   ->  BasemapStyle .ArcGISNavigation 
242258        " arcgisNavigationNight"   ->  BasemapStyle .ArcGISNavigationNight 
243259        " arcgisStreets"   ->  BasemapStyle .ArcGISStreets 
260+         " arcgisStreetsRelief"   ->  BasemapStyle .ArcGISStreetsRelief 
261+         " arcgisStreetsReliefBase"   ->  BasemapStyle .ArcGISStreetsReliefBase 
244262        " arcgisStreetsNight"   ->  BasemapStyle .ArcGISStreetsNight 
245-         " arcgisStreetsRelief"   ->  BasemapStyle .OsmStreetsRelief 
246263        " arcgisTopographic"   ->  BasemapStyle .ArcGISTopographic 
264+         " arcgisTopographicBase"   ->  BasemapStyle .ArcGISTopographicBase 
247265        " arcgisOceans"   ->  BasemapStyle .ArcGISOceans 
266+         " arcgisOceansBase"   ->  BasemapStyle .ArcGISOceansBase 
267+         " arcgisOceansLabels"   ->  BasemapStyle .ArcGISOceansLabels 
248268        " arcgisTerrain"   ->  BasemapStyle .ArcGISTerrain 
269+         " arcgisTerrainBase"   ->  BasemapStyle .ArcGISTerrainBase 
270+         " arcgisTerrainDetail"   ->  BasemapStyle .ArcGISTerrainDetail 
249271        " arcgisCommunity"   ->  BasemapStyle .ArcGISCommunity 
250272        " arcgisChartedTerritory"   ->  BasemapStyle .ArcGISChartedTerritory 
273+         " arcgisChartedTerritoryBase"   ->  BasemapStyle .ArcGISChartedTerritoryBase 
251274        " arcgisColoredPencil"   ->  BasemapStyle .ArcGISColoredPencil 
252275        " arcgisNova"   ->  BasemapStyle .ArcGISNova 
253276        " arcgisModernAntique"   ->  BasemapStyle .ArcGISModernAntique 
277+         " arcgisModernAntiqueBase"   ->  BasemapStyle .ArcGISModernAntiqueBase 
254278        " arcgisMidcentury"   ->  BasemapStyle .ArcGISMidcentury 
255279        " arcgisNewspaper"   ->  BasemapStyle .ArcGISNewspaper 
256280        " arcgisHillshadeLight"   ->  BasemapStyle .ArcGISHillshadeLight 
257281        " 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 
258291        " osmStandard"   ->  BasemapStyle .OsmStandard 
259292        " osmStandardRelief"   ->  BasemapStyle .OsmStandardRelief 
293+         " osmStandardReliefBase"   ->  BasemapStyle .OsmStandardReliefBase 
260294        " osmStreets"   ->  BasemapStyle .OsmStreets 
261295        " osmStreetsRelief"   ->  BasemapStyle .OsmStreetsRelief 
296+         " osmStreetsReliefBase"   ->  BasemapStyle .OsmStreetsReliefBase 
262297        " osmLightGray"   ->  BasemapStyle .OsmLightGray 
298+         " osmLightGrayBase"   ->  BasemapStyle .OsmLightGrayBase 
299+         " osmLightGrayLabels"   ->  BasemapStyle .OsmLightGrayLabels 
263300        " 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 
265308        else  ->  null 
266309    }
267310}
0 commit comments