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 |
defaultProvider |
JXMapKit.DefaultProviders |
JXMapKit.DefaultProviders.OpenStreetMaps |
|
|
|
|
zoom |
int |
15 |
|
|
|
|
|
|
|
|
|
all other JXMapKit properties apply as well |
jxMapView |
|
|
|
|
|
all JXMapViewer properties apply |
geoBounds |
minLat |
double |
0 |
|
|
|
|
minLng |
double |
0 |
|
|
|
|
maxLat |
double |
0 |
|
|
|
|
maxLng |
double |
0 |
|
|
|
geoPosition |
coords |
double[] |
|
|
|
must be of size 2 |
|
latitude |
double |
0 |
|
|
usually paired with longitude |
|
longitude |
double |
0 |
|
|
usually paired with latitude |
|
latDegrees |
double |
0 |
|
|
|
|
latMinutes |
double |
0 |
|
|
|
|
latSeconds |
double |
0 |
|
|
|
|
lonDegrees |
double |
0 |
|
|
|
|
lonMinutes |
double |
0 |
|
|
|
|
lonSeconds |
double |
0 |
|
|
|
|
|
|
|
|
|
choose between coords, (latitude, longitude) or the 6 specific lat/lon values |
waypoint |
latitude |
double |
0 |
|
|
|
|
longitude |
double |
0 |
|
|
|
tileFactory |
tileFactoryInfo |
TileFactoryInfo |
|
|
|
|
|
|
|
|
|
|
you can also define the properties of |
tileFactoryInfo |
minimumZoomLevel |
int |
1 |
|
|
|
|
maximumZoomLevel |
int |
15 |
|
|
|
|
totalMapZoom |
int |
17 |
|
|
|
|
tileSize |
int |
256 |
|
|
|
|
xr2l |
boolean |
true |
|
|
|
|
yt2b |
boolean |
true |
|
|
|
|
baseURL |
String |
|
|
|
|
|
xparam |
String |
'x' |
|
|
|
|
yparam |
String |
'y' |
|
|
|
|
zparam |
String |
'z' |
|
|
|
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 |