presentation-maps
Version:
The Augmented.js Next - Presentation Maps Module.
118 lines (83 loc) • 2.47 kB
Markdown
Augmented.js Presentation Maps Module
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
- [HeatMapView](
- [Parameters](
- [Examples](
- [render](
- [Properties](
- [render](
- [produceHeatmap](
- [Parameters](
- [Examples](
- [MapView](
- [Parameters](
- [Examples](
- [render](
**Extends DirectiveView**
HeatMapView - A Google Maps Heatmap View
- `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** Options to pass
Requires the following options passed for meaningful results:
```javascript
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 }, ... ]
});
};
};
```
- `heatmap` **Google.Maps.Heatmap** The heatmap
Renders the Map
Returns **View** returns 'this'
Produces the heatmap from point data
- `data` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)** The data as an array of points in Lat/Long
```javascript
produceHeatmap([{ "lat": 37.7749, "long": -122.4194, "weight": 1 }, ... ]);
```
**Extends DirectiveView**
MapView - A Google Map View
- `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** Options to pass
Requires the following options passed for meaningful results:
```javascript
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 }, ... ]
});
};
};
```
Renders the Map
Returns **View** returns 'this'