Giter VIP home page Giter VIP logo

imager-bing-maplayer's Introduction

NAME
    Imager::Bing::MapLayer - create a map layer for Bing Maps

SYNOPSIS
        my $layer = Imager::Bing::MapLayer->new(
          base_dir           => $dir,     # base directory (default '.')
          overwrite          => 1,        # overwrite existing (default)
          autosave           => 1,        # save on exit (default)
          in_memory          => 0,        # keep tiles in memory (default false)
          min_level          => 1,        # min zoom level (default)
          max_level          => 19,       # max zoom level (default)
          combine            => 'darken', # tile composition method (default)
        );

        # Plot polygons (e.g. geographic boundaries)

        $layer->polygon(
           points => $points,                  # listref to [ lat, lon ] points
           fill   => Imager::Fill->new( ... ), #
        );

        # Plot greyscale gradient circles for heatmaps

        $layer->radial_circle(
            r      => 100,              # radius in meters
            -min_r => 1,                # minimum pixel radius for any zoom level
            x      => $longitude,       # longitude (x = east-west)
            y      => $latitude,        # latitude  (y = north-south)
        );

        # Blur filter

        $layer->filter( type => 'gaussian', stddev => 1 );

        # Colourise greyscale heatmaps

        $layer->colourise();

DESCRIPTION
    This module is a wrapper around the Imager::Draw module, which allows
    you to create Bing map layers using longitude and latitude coordinates.

    The module will automatically map them to the appropriate points on tile
    files.

SEE ALSO
        * Bing Maps Tile System

        http://msdn.microsoft.com/en-us/library/bb259689.aspx

AUTHOR
    Robert Rothenberg, `<rrwo at cpan.org>'

BUGS
    Please report any bugs or feature requests to the author, or through the
    web interface at https://github.com/robrwo/Imager-Bing-MapLayer/issues.

SUPPORT
    You can find documentation for this module with the perldoc command.

        perldoc Imager::Bing::MapLayer

    You can also look for information at:

    * GitHub
        https://github.com/robrwo/Imager-Bing-MapLayer

ACKNOWLEDGEMENTS
    *   Foxtons, Ltd.

LICENSE AND COPYRIGHT
    Copyright 2013-2014 Robert Rothenberg.

    This program is released under the following license: atistic2

imager-bing-maplayer's People

Contributors

robrwo avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.