Skip to end of metadata
Go to start of metadata

Description

Adds a Map widget using swingx-ws's JXMapKit and/or JXMapView.

Installation

The current version of griffon-swingx-ws is 0.2
To install just issue the following command

Usage

The following nodes will become available on a View script upon installing this plugin

Node

Property

Type

Default

Required

Bindable

Notes

jxMapKit
[JXMapKit]

defaultProvider

JXMapKit.DefaultProviders

JXMapKit.DefaultProviders.OpenStreetMaps

(error)

(error)

 

 

zoom

int

15

(error)

(error)

 

 

 

 

 

 

 

all other JXMapKit properties apply as well

jxMapView
[JXMapView]

 

 

 

 

 

all JXMapViewer properties apply

geoBounds
[GeoBounds]

minLat

double

0

(error)

(error)

 

 

minLng

double

0

(error)

(error)

 

 

maxLat

double

0

(error)

(error)

 

 

maxLng

double

0

(error)

(error)

 

geoPosition
[GeoPosition]

coords

double[]

 

(error)

(error)

must be of size 2

 

latitude

double

0

(error)

(error)

usually paired with longitude

 

longitude

double

0

(error)

(error)

usually paired with latitude

 

latDegrees

double

0

(error)

(error)

 

 

latMinutes

double

0

(error)

(error)

 

 

latSeconds

double

0

(error)

(error)

 

 

lonDegrees

double

0

(error)

(error)

 

 

lonMinutes

double

0

(error)

(error)

 

 

lonSeconds

double

0

(error)

(error)

 

 

 

 

 

 

 

choose between coords, (latitude, longitude) or the 6 specific lat/lon values

waypoint
[Waypoint]

latitude

double

0

(error)

(error)

 

 

longitude

double

0

(error)

(error)

 

tileFactory
[TileFactory]

tileFactoryInfo

TileFactoryInfo

 

(error)

(error)

 

 

 

 

 

 

 

you can also define the properties of tileFactoryInfo()

tileFactoryInfo
[TileFactoryInfo]

minimumZoomLevel

int

1

(error)

(error)

 

 

maximumZoomLevel

int

15

(error)

(error)

 

 

totalMapZoom

int

17

(error)

(error)

 

 

tileSize

int

256

(error)

(error)

 

 

xr2l

boolean

true

(error)

(error)

 

 

yt2b

boolean

true

(error)

(error)

 

 

baseURL

String

 

(tick)

(error)

 

 

xparam

String

'x'

(error)

(error)

 

 

yparam

String

'y'

(error)

(error)

 

 

zparam

String

'z'

(error)

(error)

 

Here is a simple example of a JXMapKit in action

And this is the result

History

Version

Date

Notes

0.2

07-22-10

Release sync with Griffon 0.9

0.1

12-10-09

first release

  • No labels