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

shower-map

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shower-map

Map plugin for Shower HTML presentation engine

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Maps plugin for Shower v2

screenshot

Shower plugin for show maps (with placemarks) in presentation. Based on the JS API Yandex.Maps (ru: http://tech.yandex.ru/maps/, en: https://api.yandex.com/maps/doc/jsapi/)

install

npm i --save shower-map

And include file shower-map.js from node_modules/shower-map folder.

how to use

map

<ymap data-center="55.755768, 37.617671" data-zoom="15"></ymap>

Default plugin options for map:

  • {string|number} width = "100%"
  • {string|number} height = "80%"
  • {number} zoom = 15
  • {string} mapType = "yandex#map"
  • {string} controls = "smallMapDefaultSet"
  • *{string} placemarkIconColor

placemarks

For init new placemark you need his position into geo coords. Placemark must be located into ymap tag.

<ymap data-center="55.755768, 37.617671">
	<placemark data-coords="55.755768, 37.617671" />
</ymap>

Options for placemarks:

  • {string} coords
  • {string} balloon Balloon content.
  • {string} hint Hint content.
  • {string} color Placemark icon color.

example

<ymap data-center="55.755768, 37.617671" data-zoom="10" data-width="350px" data-height="350px">
	<placemark data-coords="55.75, 37.61" data-hint="Test" />
    <placemark data-coords="55.71, 37.62" data-color="#ff0000" />
    <placemark data-coords="55.9, 37.64" data-balloon="Test" />
</ymap>

Keywords

FAQs

Package last updated on 13 Dec 2015

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