New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

worldmap-canvas

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

worldmap-canvas

*Code base is by Jon Combe (http://joncom.be/), who released under the MIT license. Thanks Jon!*

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Code base is by Jon Combe (http://joncom.be/), who released under the MIT license. Thanks Jon!

This collection of Javascript files allow you to display a flexible worldmap using HTML5 canvas.

Things you can do include:

  • Drawing the world map at different zoom levels, in the size of your choice.
  • Customize the colors and border thickness of the map
  • Color countries

Essential files you always need to include are:

  • the Jquery library
  • worldmap.js

If you wish to dynamically modify the worldmap, you also need to include:

  • worldmap-control.js
  • worldmap-control.html provides an example set of HTML controls (needs to be included via PHP/other means).

There are a couple examples included:

  • worldmap-example.html is a "read-only" version highlighting several countries.
  • worldmap.php is a dynamic version in which the user can custom repaint the map.

Enjoy!

FAQs

Package last updated on 23 Dec 2017

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