3.0.5 • Published 5 years ago
presentation-maps v3.0.5
presentation-maps
Augmented.js Presentation Maps Module
API
Table of Contents
HeatMapView
Extends DirectiveView
HeatMapView - A Google Maps Heatmap View
Parameters
optionsObject 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
heatmapGoogle.Maps.Heatmap The heatmap
render
Renders the Map
Returns View returns 'this'
produceHeatmap
Produces the heatmap from point data
Parameters
dataArray 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
optionsObject 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
5 years ago
3.0.4
5 years ago
3.0.3
5 years ago
3.0.2
5 years ago
3.0.1
5 years ago
3.0.0
5 years ago
2.10.0
6 years ago
2.9.0
6 years ago
2.8.1
6 years ago
2.8.0
6 years ago
2.7.1
6 years ago
2.7.0
6 years ago
2.6.0
6 years ago
2.5.0
6 years ago
2.4.2
6 years ago
2.4.1
6 years ago
2.4.0
6 years ago
2.3.1
6 years ago
2.3.0
6 years ago
2.2.0
6 years ago
2.1.1
6 years ago
2.1.0
6 years ago
2.0.1
6 years ago
2.0.0
6 years ago