Line | |
---|
1 | 
|
---|
2 |
|
---|
3 | ---
|
---|
4 |
|
---|
5 | # PointInfo plugin
|
---|
6 |
|
---|
7 | This plugin shows all available information for clicked point from external database.
|
---|
8 | Currently, only Czech RUIAN module is available.
|
---|
9 |
|
---|
10 |
|
---|
11 | ##Author
|
---|
12 |
|
---|
13 | * Marián Kyral <mkyral@email.cz>
|
---|
14 |
|
---|
15 |
|
---|
16 | ##Licence:
|
---|
17 |
|
---|
18 | * GPL v2 or later
|
---|
19 |
|
---|
20 |
|
---|
21 | ##Used libraries:
|
---|
22 |
|
---|
23 | * org.json (http://www.json.org/java/index.html) for parse json data.
|
---|
24 |
|
---|
25 | ##Notes:
|
---|
26 |
|
---|
27 | - Plugin could be easy extend to show another data source.
|
---|
28 | - Input is position, output html string that is shown on message.
|
---|
29 | - Optionally you can define special links (file://...) that will be sent back to the module to the performAction method
|
---|
30 |
|
---|
31 | ###The interface:
|
---|
32 |
|
---|
33 | ```java
|
---|
34 |
|
---|
35 | /**
|
---|
36 | * Get a information about given position from external database.
|
---|
37 | * @param pos Position on the map
|
---|
38 | */
|
---|
39 | public void prepareData(LatLon pos) {
|
---|
40 | }
|
---|
41 |
|
---|
42 | /**
|
---|
43 | * Return Html text representation
|
---|
44 | * @return String htmlText
|
---|
45 | */
|
---|
46 | public String getHtml() {
|
---|
47 | }
|
---|
48 |
|
---|
49 | /**
|
---|
50 | * Perform given action
|
---|
51 | * e.g.: copy tags to clipboard
|
---|
52 | * @param act Action to be performed
|
---|
53 | */
|
---|
54 | public void performAction(String act) {
|
---|
55 | }
|
---|
56 |
|
---|
57 | ```
|
---|
58 |
|
---|
59 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.