Giter Site home page Giter Site logo

renneberg / mapsforgefx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kellerkindt/mapsforgefx

0.0 0.0 0.0 310 KB

A MapsForge (https://github.com/mapsforge/mapsforge) map renderer for JavaFX

License: GNU Lesser General Public License v3.0

Java 100.00%

mapsforgefx's Introduction

About

MapsForgeFX is the Android implementation of MapsForge (https://github.com/mapsforge/mapsforge) ported to JavaFX in mid 2013.

Some minor changes have been applied to the pom.xml and general structure for publication purpose in early 2017.

See the MapsForgeFX_demo for an example usage.

Getting started

import de.itd.maps.mapsforge.MapsforgeMap;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.File;

public class Main extends Application {
    
    public static void main(String args[]) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) throws Exception {

        MapsforgeMap map = new MapsforgeMap();

        map.setPrefSize(1024, 768);
        map.loadMap(new File("/tmp/baden-wuerttemberg.map"));
        map.getMapView().set(48.718299, 9.363812);
        map.updateMapLater(false);

        primaryStage.setScene(new Scene(map));
        primaryStage.show();
    }
}

Interesting methods in the 'MapsForgeMap' class

JavaDoc

The JavaDoc is located here.

Dependencies

The source code of the modules 'mapsforge-map' and 'mapsforge-core' from the time of porting is included at 'src/java/mapsforge'. This is for the uncertain case the the maven artifacts (version 0.3.1-MSM-0.3) are no longer available through the boundlessgeo.com maven repository,

License

This project is licensed under the LGPL v3.

The port was done as a detached student project at IT-Designers GmbH in Esslingen, Germany.

mapsforgefx's People

Contributors

kellerkindt 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.