3.0.5 • Published 4 years ago

presentation-maps v3.0.5

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
4 years ago

presentation-maps

Augmented.js Presentation Maps Module

API

Table of Contents

HeatMapView

Extends DirectiveView

HeatMapView - A Google Maps Heatmap View

Parameters

  • options Object Options to pass Requires the following options passed for meaningful results:

Examples

class MyMapView extends HeatMapView {
constructor() {
  super({
      "el": MOUNT_POINT,
      "template": `any template you want`,
      "name": "mapview",
      "style": "view",
      "lat": 37.775,
      "long": -122.434,
      "zoom": 13,
      "apikey": MAP_API_KEY,
      "data": [{ "lat": 37, "long": -122, "weight": 1 }, ... ]
    });
  };
};

render

Properties

  • heatmap Google.Maps.Heatmap The heatmap

render

Renders the Map

Returns View returns 'this'

produceHeatmap

Produces the heatmap from point data

Parameters

  • data Array The data as an array of points in Lat/Long

Examples

produceHeatmap([{ "lat": 37.7749, "long": -122.4194, "weight": 1 }, ... ]);

MapView

Extends DirectiveView

MapView - A Google Map View

Parameters

  • options Object Options to pass Requires the following options passed for meaningful results:

Examples

class MyMapView extends MapView {
constructor() {
  super({
      "el": MOUNT_POINT,
      "template": `any template you want`,
      "name": "mapview",
      "style": "view",
      "lat": 37.775,
      "long": -122.434,
      "zoom": 13,
      "apikey": MAP_API_KEY,
      "data": [{ "lat": 37, "long": -122 }, ... ]
    });
  };
};

render

Renders the Map

Returns View returns 'this'

3.0.5

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.10.0

5 years ago

2.9.0

5 years ago

2.8.1

5 years ago

2.8.0

5 years ago

2.7.1

5 years ago

2.7.0

5 years ago

2.6.0

5 years ago

2.5.0

5 years ago

2.4.2

5 years ago

2.4.1

5 years ago

2.4.0

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago