mapguide-react-layout is a modern map viewer for MapGuide Open Source and Autodesk Infrastructure Map Server
This API documentation covers the mapguide-react-layout npm module (version 0.12.0)
For an example of how this npm module is used, check out the mapguide-react-layout-example
mapguide-react-layout is supported on all modern browsers
mapguide-react-layout is available as:
viewer.js)mapguide-react-layout is written in TypeScript and .d.ts type definitions are included with the npm package.
Although you can consume this package with vanilla JavaScript, the API documentation assumes you are also using TypeScript
With npm: npm install --save mapguide-react-layout
With yarn: yarn add mapguide-react-layout
Modules in mapguide-react-layout can be imported in two ways
For all the modules referenced on the right hand side, prepend mapguide-react-layout/lib for the actual module name to import
For example the module "api/common" should be imported as mapguide-react-layout/lib/api/common
For convenience you can also import whatever you require through the "catch-all" mapguide-react-layout module.
For example, the "setCurrentView" action can be imported in two ways:
import { setCurrentView } from "mapguide-react-layout/lib/actions/map";import { setCurrentView } from "mapguide-react-layout";Generated using TypeDoc