Options
All
  • Public
  • Public/Protected
  • All
Menu

mapguide-react-layout - v0.13.0

Introduction

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.13.0)

For an example of how this npm module is used, check out the mapguide-react-layout-example

Browser Support

mapguide-react-layout is supported on all modern browsers

  • Chrome
  • Firefox
  • Safari
  • IE11
  • Microsoft Edge

Usage

mapguide-react-layout is available as:

  • A pre-built bundle (viewer.js)
  • A set of transpiled CommonJS modules on npm

TypeScript

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

Installation

With npm: npm install --save mapguide-react-layout

With yarn: yarn add mapguide-react-layout

Importing Modules

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