@corps-ui/maps
v0.4.0
Published
World map components for react
Downloads
188
Readme
Feature list and docs can be found here https://corps-ui-maps.azurewebsites.net
How to install
npm i @corps-ui/maps
Note: in order for Esri's ArcGIS to work with this library a minified copy of ArcGIS is automaticly installed into your project's static assets folder... At present this is assumed to be "./public" in the future @corps-ui/maps will ask for the path
How to get started (using our simple demo)
Download a very basic demo here... https://corps-ui-maps.azurewebsites.net/demos/001-hello-world.zip
How to get started (using create react app)
Step 1 ...Create the app
npx create-react-app my-app cd my-app
Step 2 ...Install @corps-ui/maps
npm i @corps-ui/maps
Step 3 ... setup ./src/App.js to look like the code below
import React, { Component, Fragment } from "react";
import {GeoMap} from "@corps-ui/maps";
class App extends Component {
render() {
return (
<GeoMap
displayMode="3D"
basemap="streets"
/>
);
}
}
export default App;
Step 4 ...Add Esri JavaScript and CSS links to ./public/index.html
<link rel="stylesheet" href="%PUBLIC_URL%/esri-bundle/css/main.css">
<script type="text/javascript" src="%PUBLIC_URL%/esri-bundle/bundle.js"></script>
Step 5 ...Start developing!
Change Log (0.1.0-preview.14) [4/16/2019]
- Added LineMeasure Component (Thanks to Kyle Laurio)
Change Log (0.1.0-preview.13) [4/1/2019]
- Added support for <Circle outlineSize={some number}/>
Change Log (0.1.0-preview.12) [3/8/2019]
- Added support for layer offset
Change Log (0.1.0-preview.11) [3/6/2019]
- Added Line graphics
- Added Triangle graphics (Only supported on 2D maps at the moment)
- Added Text graphics
Change Log (0.1.0-preview.10) [2/19/2019]
- Added Square graphics
- Added support outline color in graphics
- Added improved graphics perf
Change Log (0.1.0-preview.9) [2/15/2019]
- Added graphics layer now supports conditionally rendered graphics
Change Log (0.1.0-preview.8) [2/13/2019]
- Added Square graphics
- Added support outline color in graphics
- Added improved graphics perf
Change Log (0.1.0-preview.6) [2/4/2019]
- Added support for screenshots
- Added support for node 6 users
Change Log (0.1.0-preview.4) [1/7/2019]
- Added AreaMeasure Component
- Updated examples found here
- Fixed a some major TypeScript issues
- Fixed NPM install bugs