Skip to main content

Kratelab's helpful scripts for MapboxGL maps.

Project description

Krate Labs designs and fabricates illuminated laser etched displays. The innovative design allows only light to pass through the etched artwork, creating a unique and contemporary design. The contrasting colours from the background, the etching and the high grade plexiglass allow the map to stand out as a very distinct art piece for your home or business.

The lasering process allows us to etch the most intricate details with extreme precision, creating a very unique and detailed image of any location in the entire world.

Our contemporary designs highlights the cartography as the focal point as we fuse and blend the natural and urban landscapes into a design that we highlight with light itself. This allows the piece to stand out and light a room with a natural glow that can create an ambience or compliment an existing decor.

Whether you wish to preserve cityscapes or familiar places, Krate Labs is here to provide meaningful art purchases by allowing each user to choose a location that is meaningful to them. Simply choose from a variety of templates that we currently have, or send a custom request, we’re here to help you create your customized art piece for your home or business.

Install

Simple Setup

$ git clone git@github.com:KrateLabs/KrateLabs.git
$ cd KrateLabs
$ make
$ kratelabs --location "CN Tower, Toronto" --zoom 12

[OK] Geocoded: CN Tower, Toronto, ON M5V, Canada [43.6425657, -79.38705569999999]
[OK] Created: CN Tower, Toronto.png
[OK] Created: CN Tower, Toronto.svg

Using Docker

$ docker build -t kratelabs .
$ docker run -it --rm -v $(pwd):/data kratelabs --location "CN Tower, Toronto" --zoom 12

Command Line Interface

$ kratelabs --help
Usage: kratelabs [OPTIONS]

  Command Line Interface.

Options:
--filename TEXT         Filename output to SVG
--lat FLOAT             latitude for the center point of the static map;
                        number between  -90 and  90
--lng FLOAT             longitude for the center point of the static map;
                        number between  -180 and  180
--location TEXT         Geographical Location based on Google Maps
--zoom FLOAT            zoom level; number between  0 and  22 . Fractional
                        zoom levels will be rounded to two decimal places.
--width INTEGER RANGE   width of the image in pixels
--height INTEGER RANGE  height of the image in pixels
--style TEXT            mapbox://styles/{username}/{style_id}
--access_token TEXT     Mapbox access token
--bearing FLOAT         Rotates the map around its center. Number between 0
                        and 360.
--pitch FLOAT           Tilts the map, producing a perspective effect.
                        Number between 0 and 60.
--retina                [boolean] If  @2x is added to request a retina 2x
                        image will be returned
--attribution           [boolean] Value controlling whether there is
                        attribution on the image; defaults to  false
--logo                  [boolean] Value controlling whether there is a
                        Mapbox logo on the image; defaults to  false
--upload                [boolean] Upload to AWS S3
--delete                [boolean] Delete PNG
--help                  Show this message and exit.

Mapbox Styles

All Features

  • mapbox://styles/addxy/cim6u5lfi00k2cwm23exyzjim

Roads Only

  • mapbox://styles/addxy/cim6u8zc300om9jm05ku5zurt

Water Only

  • mapbox://styles/addxy/cim6u6b7t001l9klzpio0dhaa

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kratelabs-0.2.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

kratelabs-0.2.1-py2.py3-none-any.whl (11.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file kratelabs-0.2.1.tar.gz.

File metadata

  • Download URL: kratelabs-0.2.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for kratelabs-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1f195d67e0757e5f3760d491aa865f976c881c5660d96355d18d9901a40a1959
MD5 9acc27f8558bde38a5de1aef8e1d2b63
BLAKE2b-256 ff0aca3ceb8f536fe956f6e8ff51491f1aec13f87831a70acce55f15faa61e75

See more details on using hashes here.

File details

Details for the file kratelabs-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for kratelabs-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 33054baa913e5c2e833b922cea12f02fbb799d5e3650f3b93d547fb7233a55cb
MD5 fc8d793b7f10ae53bf5ac29c17e220c0
BLAKE2b-256 595012c14676eed4ed23c65723b6e3b84d510541765d8038ceddd045c1414b45

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page