react-arcgis
Advanced tools
Changelog
3.3.3
zoom
prop on Scene
componentsChangelog
3.3.2
childrenAsFunction
prop: render() {
return (
<Scene
className="scene__container"
childrenAsFunction={(map: __esri.Map, view: __esri.SceneView) => (
<BermudaTriangle map={map} view={view} />
)}
/>
);
}
This is helpful for TypeScript users, as it allows the compiler to understand the relationship between parent and child components. If you are not using TypeScript, there is no benefit to using this prop over specifying children in the usual manner.
Changelog
3.3.1
mapProperties
in the WebMap
and WebScene
components has been fixedChangelog
3.3.0
loadModules
from https://github.com/Esri/esri-loader can now also be imported as loadModules
instead of just esriPromise
for consistency. For example:import { loadModules, esriPromise } from 'react-arcgis';
loadModules === esriPromise // true
Changelog
Version 3.2.0:
render() {
return (
<Map
loaderOptions={{
dojoConfig: {
has: {
"esri-promise-compatibility": 1
}
}
}}
/>
);
}