API Functions:
cgpv.api.maps.Map1.layer.addGeoviewLayer(config)
cgpv.api.maps.Map1.layer.removeLayerUsingPath('geojsonLYR1/geojsonLYR1')
cgpv.api.maps.Map1.layer.removeAllGeoviewLayers()
cgpv.api.maps.Map1.layer.setOrToggleLayerVisibility('esriFeatureLYR5/0')
cgpv.api.maps.Map1.layer.setAllLayersVisibility(true)
cgpv.api.maps.Map1.layer.setAllLayersVisibility(false)
cgpv.api.maps.Map1.layer.setLayerName('uniqueValueId/1', 'Water Quantity')
cgpv.api.maps.Map1.clickMarkerIconShow({lnglat: [-90, 60]})
cgpv.api.maps.Map1.zoomToLngLatExtentOrCoordinate([-87.77486341686723, 51.62285357468582, -84.57727128084842, 53.833354975551075])
cgpv.api.maps.Map1.zoomToLngLatExtentOrCoordinate([-90, 60])
cgpv.api.utilities.geo.extentToPolygon([-87.77486341686723, 51.62285357468582, -84.57727128084842, 53.83335497555107])
cgpv.api.utilities.geo.polygonToExtent(polygon)
cgpv.api.maps.Map1.layer.redefineFeatureFields('geojsonLYR1/geojsonLYR1/polygons.json', 'Location Province,Date Created,Images', 'alias')
cgpv.api.maps.Map1.footerBarApi.selectTab('details')
cgpv.api.maps.Map1.appBarApi.selectAppBarTab('AppbarPanelButtonGeolocator', 'geolocator')
cgpv.api.maps.Map1.layer.hoverFeatureInfoLayerSet.disableHoverListener('esriFeatureLYR5/0')
cgpv.api.maps.Map1.layer.hoverFeatureInfoLayerSet.enableHoverListener('esriFeatureLYR5/0')
cgpv.api.maps.Map1.layer.featureInfoLayerSet.disableClickListener('esriFeatureLYR5/0')
cgpv.api.maps.Map1.layer.featureInfoLayerSet.enableClickListener('esriFeatureLYR5/0')
cgpv.api.maps.Map1.stateApi.getLegendCollapsedState('uniqueValueId/1');
cgpv.api.maps.Map1.stateApi.setLegendCollapsedState('uniqueValueId/1');
cgpv.api.maps.Map1.getMapLayerOrderInfo()
cgpv.api.maps.Map1.setLanguage('en')
cgpv.api.maps.Map1.setLanguage('fr')
const basemap = await cgpv.api.maps.Map1.basemap.createCoreBasemap(basemapOptions = {basemapId: 'simple'})
cgpv.api.maps.Map1.basemap.setBasemap(basemap)
cgpv.api.maps.Map1.stateApi.setSelectedLayersTabLayer('nonmetalmines/5')
cgpv.api.maps.Map1.plugins['swiper'].activateForLayer('nonmetalmines/5')
cgpv.api.maps.Map1.plugins['swiper'].deActivateForLayer('nonmetalmines/5')-
cgpv.api.utilities.geo.calculateDistance(coordinates[], 'EPSG:4326', outProj)
cgpv.api.maps.Map1.createMapConfigFromMapState()
cgpv.api.maps.Map1.reloadWithCurrentState()
cgpv.api.maps.Map1.layer.featureHighlight.pointMarkers.addPointMarkers('group1', markers)
cgpv.api.maps.Map1.layer.featureHighlight.pointMarkers.removePointMarkersOrGroup('group1');
cgpv.api.maps.Map1.layer.featureHighlight.pointMarkers.zoomToPointMarkers('group1', ['1', '3']);
cgpv.api.maps.Map1.layer.featureHighlight.pointMarkers.zoomToPointMarkerGroup('group1');
Events that will generate notifications:
- onLayerAdded
- onLayerRemoved
- onLayersLoaded
- onLayerLoaded for Nonmetal mines
- onVisibleChanged for Water Quantity
- onLayerItemVisibilityToggled
- onMapZoomEnd
- onMapMoveEnd
- onLayerStatusChanged for Water Quantity
- onLayerFilterApplied for Water Quantity
- onMapLanguageChanged
- onBasemapChanged
- onLayersReordered
- onLayerOpacityChanged for Water Quantity
- onMapAddedToDiv