Socket
Socket
Sign inDemoInstall

presentation-maps

Package Overview
Dependencies
2
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    presentation-maps

The Augmented.js Next - Presentation Maps Module.


Version published
Weekly downloads
27
Maintainers
1
Install size
6.79 MB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 19 Jul 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc