Giter VIP home page Giter VIP logo

tippecanoe-for-android's Introduction

How to import for nubes: 0) run ndk-build in the tippecanoe project (not nessesary)

  1. open your project and: -File -> New -> Import Module -Specify this tippcanoe project(Korean) as a sourse directory

  2. fix gradle problems

    • go to settings.gradle - modify first line: include ':tippcanoe',':nameOfYourMainModules' ...

    • enssure that in tippcanoe build.gradle first line - instead of: apply plugin: 'com.android.application' should be: apply plugin: 'com.android.library'

    • add to the main module build.gradle as dependency next line: dependencies { ... compile project(':tippcanoe') ... }

    -remove in tippcanoe module build.gradle file next line: applicationId "com.example.yuriy.korean"

    • sync gradle
  3. (this step is not necessary if step 0 has been done in order) Android.mk is located in tippcanoe/src/main/jni : There are different ways to run ndk build: via creaing ndk-build comand in external tools panel:

    • creating ndk-build command:

      go to-> androidstudio ->preferenses;

      select: tools->external tools;

      press "+"

      fill the form:

    name = anyname (ndk-build-tippecanoe as example)

    discription = any discription
    
    Group = NDK   or any name
    
    program = path to ndk-buld
    
       example  = /Users/yuriy/Library/Android/sdk/ndk-bundle/ndk-build
       
    parameters - empty // to make clean command put parameter =  clean
    
    working directory = $ProjectFileDir$/tippcanoe/src/main
    
    • creating ndk clean command:

      do al previous step (creating ndk-build command:) but parameters has to be = clean

  4. to invoke ndk-build command

    • right click on any empty space and select NDK->ndk-build-tippecanoe

6)how to use:

        - to generate in external dir file "any_name.mbtiles"

         in your main app type:
         TippeCanoeService tippeCanoeService = new TippeCanoeService();
         tippeCanoeService.generateMbtilesViaTippecanoe("any_name.mbtiles",context);

        by default it looks for "fields.json", "markers.json" files in external dir,
        you can set another names by passing them as params to TippeCanoeService constructor or
        via setters;

tippecanoe-for-android's People

Contributors

yuriyskulskiy avatar

Stargazers

 avatar

Watchers

 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.