You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

presentation-maps

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

presentation-maps

The Augmented.js Next - Presentation Maps Module.

3.0.5
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

presentation-maps

Augmented.js Presentation Maps Module

API

Table of Contents

  • HeatMapView
  • MapView

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'

Keywords

augmentedjs

FAQs

Package last updated on 19 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts