@mapbox/tiletype

WebJar for @mapbox/tiletype

Лицензия

Лицензия

BSD
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

mapbox__tiletype
Последняя версия

Последняя версия

0.3.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

@mapbox/tiletype
WebJar for @mapbox/tiletype
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/mapbox/tiletype

Скачать mapbox__tiletype

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/mapbox__tiletype/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>mapbox__tiletype</artifactId>
    <version>0.3.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/mapbox__tiletype/
implementation 'org.webjars.npm:mapbox__tiletype:0.3.1'
// https://jarcasting.com/artifacts/org.webjars.npm/mapbox__tiletype/
implementation ("org.webjars.npm:mapbox__tiletype:0.3.1")
'org.webjars.npm:mapbox__tiletype:jar:0.3.1'
<dependency org="org.webjars.npm" name="mapbox__tiletype" rev="0.3.1">
  <artifact name="mapbox__tiletype" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='mapbox__tiletype', version='0.3.1')
)
libraryDependencies += "org.webjars.npm" % "mapbox__tiletype" % "0.3.1"
[org.webjars.npm/mapbox__tiletype "0.3.1"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

tiletype

build status Coverage Status

detect common map tile formats from a buffer

type(buffer)

Given a buffer of unknown data, return either a format as an extension string or false if the type cannot be determined.

Potential options are:

  • png
  • pbf
  • jpg
  • webp

Parameters

parameter type description
buffer Buffer input

Returns String,boolean, identifier

headers(buffer)

Return headers - Content-Type and Content-Encoding - for a response containing this kind of image.

Parameters

parameter type description
buffer Buffer input

Returns Object, headers

dimensions(buffer, dimensions)

Determine the width and height of an image contained in a buffer, returned as a [x, y] array.

Parameters

parameter type description
buffer Buffer input
dimensions Array,boolean

Installation

Requires nodejs.

$ npm install @mapbox/tiletype

Tests

$ npm test
org.webjars.npm

Mapbox

Mapbox is the location data platform for mobile and web applications. We're changing the way people move around cities and explore our world.

Версии библиотеки

Версия
0.3.1