0.0.11 • Published 5 years ago

nggm v0.0.11

Weekly downloads
22
License
MIT
Repository
github
Last release
5 years ago

nggm (under construction)

Just Maps JavaScript API wrapper for use with Angular.

Examples

Setup

  1. Install

    npm install nggm
  2. Add <script> width API key.

    <script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"></script>

    It should be located above the place of loading the main scripts.

  3. Import required module:

    • GmCommonModule
    • GmControlModule
    • GmInfoWindowModule
    • GmMapModule
    • GmMarkerModule

<gm-map>

Import

import {GmCommonModule, GmMapModule} from 'nggm';

API

You can use any Map methods with template reference variables.

<gm-map #map></gm-map>
<button (click)="map.panBy(10, 20)">pan</button>

Tokens

Directives

Strikethrough directives have not yet been implemented.

DirectiveMapOptionsMap
[(gmCenter)]MapOptions.centerMap.getCenter Map.setCenter Map.center_changed
[(gmClickableIcons)]MapOptions.clickableIconsMap.getClickableIcons Map.setClickableIcons clickableicons_changed
[(gmDraggable)]MapOptions.draggabledraggable_change
[(gmHeading)]MapOptions.headingMap.getHeading Map.setHeading Map.heading_changed
[(gmMapTypeId)]MapOptions.mapTypeIdMap.getMapTypeId Map.setMapTypeId maptypeid_changed
[(gmStreetView)]MapOptions.streetViewMap.getStreetView Map.setStreetView streetview_changed
[(gmTilt)]MapOptions.tiltMap.getTilt Map.setTilt Map.tilt_changed
[(gmZoom)]MapOptions.zoomMap.getZoom Map.setZoom Map.zoom_changed
not neededMap.fitBounds
(gmBoundsChange)Map.getBounds Map.bounds_changed
not neededMap.getDiv
(gmProjectionChange)Map.getProjection Map.projection_changed
not neededMap.panBy
not neededMap.panTo
not neededMap.panToBounds
(gmClick)Map.click
(gmDblclick)Map.dblclick

gmControl=""

TODO doc

<gm-marker>

TODO doc

<gm-info-window>

TODO doc

<gm-polyline>

Not implemented

<gm-polygon>

Not implemented

<gm-circle>

Not implemented

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago