Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

radius-widget

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

radius-widget

Uses Google maps API to set location and radius

  • 1.1.0
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Radius widget

Uses Google maps API to set location and radius.

Installation

Make sure you have the latest version of node.js installed. Then run

$ npm install && npm run build

Usage

Include the form form from the index.html into your page. Then initialize the widget like so:

new RadiusWidget({
    containerId: 'radius-widget', // Set the id of the outer container
    formId: 'radius-widget-form', // Set the id of 'fake form' with the input fields
    hideForm: Boolean(1), // Toggle display of form
    // Optionally: Set the address for the map instead of using the form
    address: {
        street: 'Unter den Linden',
        streetno: '1'
        zipcode: '',
        city: 'Berlin',
    },
    //initialZoom: 13 // Set some more zoom value initially
}).initMap();

FAQs

Package last updated on 28 Feb 2019

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc