void ExecuteViewMapCommand(ExampleItemModel item) { Xamarin.Forms.Page page = null; switch (item.Title) { case "Default styles": page = new StylesDefaultPage(); break; case "Symbol layer icons": page = new PluginSymbolListener(); break; case "Symbol layer icon size change": page = new StylesSymbolLayerIconSizeChangePage(); break; case "Create a line layer": page = new StylesLineLayerPage(); break; case "Change a layer's color": page = new StylesChangeLayerColorPage(); break; case "Add a vector tile source": page = new StylesVectorLayerPage(); break; case "Add a WMS source": page = new StylesWebMapServiceLayerPage(); break; case "Add a new layer below labels": page = new StylesLayerBelowLabelsPage(); break; case "Adjust a layer's opacity": page = new StylesChangeLayerOpacityPage(); break; case "Color dependent on zoom level": page = new StylesColorDependentOnRoomLevelPage(); break; case "Change a map's language": page = new StylesLanguageSwitchPage(); break; case "Show and hide layers": page = new StylesShowHideLayersPage(); break; case "Mapbox Studio style": page = new StylesMapboxStudio(); break; case "Local style or custom raster style": page = new StylesLocalStyleSource(); break; case "Use an image source": page = new StylesImageSource(); break; case "Show time lapse": page = new StylesShowTimeLapse(); break; case "Hillshading": page = new StylesHillshading(); break; case "Multiple text formats": page = new StylesTextFieldMultipleFormats(); break; case "Transparent render surface": page = new StylesTransparentRenderSurface(); break; case "Click to add photo": page = new StylesClickToAddImage(); break; case "Text anchor position": page = new StylesRotatingTextAnchorPosition(); break; case "Opacity fade": page = new StylesSatelliteOpacityOnZoom(); break; case "Adjust text labels": page = new StylesTextFieldFormatting(); break; case "Style with missing icon": page = new StylesMissingIcon(); break; case "Variable label placement": page = new StylesVariableLabelPlacement(); break; case "Display 3D building height based on vector data": page = new ExtrusionPopulationDensityExtrusion(); break; case "Use GeoJSON data to set extrusion height": page = new ExtrusionMarathon(); break; case "Adjust light location and color": page = new ExtrusionAdjust(); break; case "Extrude polygons for 3D indoor mapping": page = new ExtrusionIndoor3DMap(); break; case "Rotate and tilt with 3D buildings": page = new ExtrusionRotation(); break; case "Display real-time traffic": page = new PluginTraffic(); break; case "Display buildings in 3D": page = new PluginBuilding(); break; case "Location search": page = new PluginPlaces(); break; // TODO Location search case "Symbol annotation listener": page = new PluginSymbolListener(); break; case "Change map text to device language": page = new PluginLocalization(); // TODO Change map text to device language break; case "Place picker": page = new MapBoxQsPage(); // TODO Place picker break; case "Line behind moving icon": page = new LabLineBehindMovingIconPage(); break; case "A simple offline map": page = new OfflineSimpleOfflineMapPage(); break; case "Sideload offline map": page = new OfflineSideloadOfflineMapPage(); break; case "Draw a polygon": page = new DdsDrawPolygon(); break; case "Draw a GeoJSON line": page = new DdsDrawGeojsonLine(); break; case "Draw a polygon with holes": page = new DdsPolygonHoles(); break; case "Show heatmap data": page = new DdsHeatmap(); break; case "Styling heatmaps": page = new DdsMultipleHeatmapStyling(); break; case "Display water depth": page = new DdsBathymetry(); break; case "CircleLayer clusters": page = new DdsCircleLayerClustering(); break; case "SymbolLayer clustering": page = new DdsSymbolLayerClustering(); break; case "Style circles categorically": page = new DdsStyleCirclesCategorically(); break; case "Update a choropleth layer by zoom level": page = new DdsChoroplethZoomChange(); break; case "Style lines using an identity property function": page = new DdsStyleLineIdentityProperty(); break; case "Line gradient": page = new DdsLineGradient(); break; case "Create hotspots from points": page = new DdsCreateHotspots(); break; case "Join local JSON data with vector tile geometries": page = new DdsChoroplethJsonVectorMix(); break; case "Draw multiple geometries": page = new DdsMultipleGeometries(); break; //case "Symbol layer info window": TODO // page = new DdsInfoWindowSymbol(); // break; case "Data time lapse": page = new DdsAddRainFallStyle(); break; case "Multiple expressions": page = new DdsExpressionIntegration(); break; default: page = new MapBoxQsPage(); break; } if (page != null) { page.Title = item.Title; Navigation.PushAsync(page); } }
void ExecuteViewMapCommand(ExampleItemModel item) { Xamarin.Forms.Page page = null; switch (item.Title) { case "Default styles": page = new StylesDefaultPage(); break; case "Symbol layer icons": page = new StylesSymbolLayerIconsPage(); break; case "Symbol layer icon size change": page = new StylesSymbolLayerIconSizeChangePage(); break; case "Create a line layer": page = new StylesLineLayerPage(); break; case "Change a layer's color": page = new StylesChangeLayerColorPage(); break; case "Add a vector tile source": page = new StylesVectorLayerPage(); break; case "Add a WMS source": page = new StylesWebMapServiceLayerPage(); break; case "Add a new layer below labels": page = new StylesLayerBelowLabelsPage(); break; case "Adjust a layer's opacity": page = new StylesChangeLayerOpacityPage(); break; case "Color dependent on zoom level": page = new StylesColorDependentOnRoomLevelPage(); break; case "Change a map's language": page = new StylesLanguageSwitchPage(); break; case "Show and hide layers": page = new StylesShowHideLayersPage(); break; case "Mapbox Studio style": page = new StylesMapboxStudio(); break; case "Local style or custom raster style": page = new StylesLocalStyleSource(); break; case "Use an image source": page = new StylesImageSource(); break; case "Show time lapse": page = new StylesShowTimeLapse(); break; case "Hillshading": page = new StylesHillshading(); break; case "Multiple text formats": page = new StylesTextFieldMultipleFormats(); break; case "Transparent render surface": page = new StylesTransparentRenderSurface(); break; case "Click to add photo": page = new StylesClickToAddImage(); break; case "Text anchor position": page = new StylesRotatingTextAnchorPosition(); break; case "Opacity fade": page = new StylesSatelliteOpacityOnZoom(); break; case "Adjust text labels": page = new StylesTextFieldFormatting(); break; case "Style with missing icon": page = new StylesMissingIcon(); break; case "Variable label placement": page = new StylesVariableLabelPlacement(); break; case "Display 3D building height based on vector data": page = new ExtrusionPopulationDensityExtrusion(); break; case "Use GeoJSON data to set extrusion height": page = new ExtrusionMarathon(); break; case "Adjust light location and color": page = new ExtrusionAdjust(); break; case "Extrude polygons for 3D indoor mapping": page = new ExtrusionIndoor3DMap(); break; case "Rotate and tilt with 3D buildings": // TODO Create Buildings plugin first page = new ExtrusionIndoor3DMap(); break; case "Display real-time traffic": // TODO Create Traffic plugin first page = new ExtrusionIndoor3DMap(); break; case "Display buildings in": // TODO Create Buildings plugin first page = new ExtrusionIndoor3DMap(); break; case "Location search": // TODO Create Places plugin first page = new ExtrusionIndoor3DMap(); break; case "Line behind moving icon": page = new LabLineBehindMovingIconPage(); break; case "Symbol annotation listener": page = new PluginsSymbolListener(); break; case "A simple offline map": page = new OfflineSimpleOfflineMapPage(); break; case "Sideload offline map": page = new OfflineSideloadOfflineMapPage(); break; default: page = new MapBoxQsPage(); break; } if (page != null) { page.Title = item.Title; Navigation.PushAsync(page); } }