Socket
Socket
Sign inDemoInstall

embedded-map-scraper

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

embedded-map-scraper

Gives you a url to use inside of an iframe to generate a embedded map on your website without using google's api


Version published
Maintainers
1
Weekly downloads
3
decreased by-25%

Weekly downloads

Readme

Source

Embedded map scraper

npm

a scraper to partially replace the maps javascript API

How to use

* ## installation
  1. Download the package npm i embedded-map-scraper
  • Usage

    • Importing

      1. import the package like this const scraper = require("embedded-map-scraper") or like this import scraper from "embedded-map-scraper"
    • Functionality

      • getIframeSrcCoords - returns a URL intended to be used as the src parameter in the <iframe> HTML tag, the iframe will display a map with a pin on the specified coordinates, PARAMS:
        • lat: latitude of the location where the pin is located (Number from -90 to 90)
        • lng: longitude of the location where the pin is located (Number from -180 to 180)
        • zoom: level of zoom (Number from 1 to 19)
        • satellite: will the satellite or map images be used (Boolean)
      • getIframeSrcSearch - returns a URL intended to be used as the src parameter in the <iframe> HTML tag, the iframe will display a map with a pin on the location of the search term or nowhere if the location can't be found, PARAMS:
        • searchTerm: the search term (String)
        • zoom: level of zoom (Number from 1 to 19)
        • satellite: will the satellite or map images be used (Boolean)
      • getIframeSrcNoPin - returns a URL intended to be used as the src parameter in the <iframe> HTML tag, the iframe will display a map with no pin, PARAMS:
        • satellite: will the satellite images be used (Boolean)
        • zoom: level of zoom (Number from 1 to 19)

Keywords

FAQs

Last updated on 27 Jan 2023

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