项目作者: entera

项目描述 :
高级语言: Kotlin
项目地址: git://github.com/entera/javafx-cartographic-canvas.git
创建时间: 2017-01-09T22:58:29Z
项目社区:https://github.com/entera/javafx-cartographic-canvas

开源协议:MIT License

下载


javafx-cartographic-canvas

Clone project and geodata repositories:

  1. $ git clone https://github.com/hastebrot/javafx-cartographic-canvas
  2. $ git clone https://github.com/hastebrot/geodata-eu-us-world

Build and run the application (Install Oracle JDK on Ubuntu 16.04):

  1. $ cd javafx-cartographic-canvas
  2. $ export JAVA_HOME="/usr/lib/jvm/java-8-oracle"
  3. $ ./gradlew :projects/core:run

Guides

Tasks

  • [X] 1. Load shapefiles within directory structure
  • [X] 2. Calculate hastebrot.cartocanvas.util.bounds of all shapefiles
  • [X] 3. Render all geometries on canvas
  • 4. Re-render after window resize and mouse interaction
  • 5. Orchestrate all components

Components

  • app.kt:

    • APP: WorkspaceApp
    • VIEW: WorkspaceView
  • loader.kt:

    • VIEW: ShapefileListerView
    • VIEW: ShapefileLoaderView
    • SERVICE: ShapefileLoaderService
    • MODEL: ShapefileLister
  • info.kt:

    • VIEW: ShapefileInfoView
    • VIEW: ShapefileBoundsView
    • SERVICE: ShapefileInfoService
    • MODEL: ShapefileInfo
  • map.kt:

    • VIEW: MapCanvasView
    • SERVICE: ScaleService / ViewportService
    • SERVICE: RenderService
    • MODEL: Scale
    • MODEL: Bounds
    • MODEL: Style
  • nav.kt:

    • SERVICE: WindowService
    • SERVICE: MouseService

Tools

  • cd: class diagram
  • sd: sequence diagram