Closed hhkaos closed 3 years ago
I would add a snippet to help instantiate a MapView Class in *.js files (this issue was opened with the help of the snippet building)
Prefix: MapView Description: Create an instance of esri/views/MapView Snippet:
const view = new MapView({ container: "${1:viewDiv}", map: ${2:map}, zoom: ${3:4}, center: [${4:15,65}] });
Code:
"Load a MapView (2D)": { "prefix": "MapView", "body": [ "const view = new MapView({", "\tcontainer: \"${1:viewDiv}\",", "\tmap: ${2:map},", "\tzoom: ${3:4},", "\tcenter: [${4:15,65}]", "});", ], "description": "Create an instance of esri/views/MapView" }
Looks good.
PR done!
I would add a snippet to help instantiate a MapView Class in *.js files (this issue was opened with the help of the snippet building)
Prefix: MapView Description: Create an instance of esri/views/MapView Snippet:
Code: