Skip to content

Map Package

Davis edited this page Sep 11, 2020 · 1 revision

Home / Packages


@stratusjs/map

npm version

Angular Google Map component to be used as an add-on to StratusJS

Usage

Stratus HTML Components enabled

  • <sa-map data-callback="{{Object or variablePath}}"></sa-map>

See Map Package Usage for detailed instructions on usage and parameters.


Frameworks & Libraries

Installation

Within the project directory of Stratus

Either Yarn install

  • yarn add @stratusjs/map

Or NPM install

  • npm install @stratusjs/map

And include the library paths into your stratus config.js such as

boot.configuration.paths = {
  // Angular Google Maps
  '@angular/google-maps': `${boot.deployment}@angular/google-maps/bundles/google-maps.umd${boot.suffix}`,


  // STRATUS SRC: Map
  '@stratusjs/map/*': `${boot.deployment}@stratusjs/map/src/*${boot.suffix}`,
}

And add modules to app.module.js + boot.js (pending instructions)

Dependencies

All dependencies need to be installed within the same project along with your config paths define. (manually installed for the time being)

Clone this wiki locally