Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shannah/cn1geoviz
A library to load and display GeoJSON data in Codename One
https://github.com/shannah/cn1geoviz
Last synced: about 1 month ago
JSON representation
A library to load and display GeoJSON data in Codename One
- Host: GitHub
- URL: https://github.com/shannah/cn1geoviz
- Owner: shannah
- Created: 2015-03-16T18:44:58.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-20T19:06:22.000Z (almost 8 years ago)
- Last Synced: 2023-04-01T05:43:14.895Z (over 1 year ago)
- Language: Java
- Size: 3.05 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= Codename One GeoViz Library
:toc:
:source-highlighter: coderay
A Library to Load and Render GeoJSON data in Codename Oneimage::screenshots/geoviz_demo.png[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 https://github.com/shannah/CN1GeoViz/releases[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
[source,java]
----
//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
* https://rawgit.com/shannah/CN1GeoViz/master/dist/javadoc/index.html[JavaDocs]
== Demo
See the https://github.com/shannah/GeoVizDemo[GeoVis Demo App] in the Codename One SVN repository.