Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.adoc

Codename One GeoViz Library

GeoViz Demo Screenshot

Synopsis

This library provides support for loading GeoJSON data in a Codename One application. It also provides a component to render the GeoJSON data.

License

GPL+Classpath Exception

Installation

(The following instructions are for Netbeans. Installation in Eclipse or IntelliJ projects should be similar).

  1. Download the latest CN1GeoViz.cn1lib release, and copy it to your project’s "lib" directory.

  2. Right click your project in the project explorer and select "Refresh Libs".

Getting Started

//Load a GeoJSON file
GeoJSONLoader loader = new GeoJSONLoader();
FeatureCollection coll = loader.loadJSON(
        Display.getInstance().getResourceAsStream(null, "/us-states.json"),
        "UTF-8"
);

// Create a GeoVizComponent to display the geo data
GeoVizComponent comp = new GeoVizComponent(coll);

Documentation

Demo

See the GeoVis Demo App in the Codename One SVN repository.

About

A library to load and display GeoJSON data in Codename One

Resources

Languages

You can’t perform that action at this time.