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

vec2-tile-layer

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vec2-tile-layer

single layer of map tiles

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
1
Created
Source

vec2-tile-layer

A single layer of map tiles.

testling badge

used within vec2-map

Create a tile map at a given scale layer, with tiles as <img> tags. Currently defaults to using google maps tiles.

var Layer = require('../')
var Vec2 = require('vec2')

var l = new Layer({scale:2, size: new Vec2(1000, 1000)})
        .update(new Vec2(0, 0), new Vec2(1000, 1000), new Vec2(1, 1))

document.body.appendChild(l.div)

map coordinates are between 0 - 1000 in both X and Y, where 0,0 is in the top-left/north-west.

License

MIT

FAQs

Package last updated on 18 Nov 2013

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