Skip to content

Commit d186f77

Browse files
committed
static copy of wiki API docs
1 parent 976f628 commit d186f77

File tree

139 files changed

+39323
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+39323
-0
lines changed
Binary file not shown.
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
GSS (Geo Style Sheets) is an evolving specification based on CSS and JSON. It is designed to handle dynamic data sources in a flexible manner, and allow interactions to be specified directly in the style sheet. It is changing rapidly, but we try to keep the GssUsage page as updated as possible. As such, some of the information on that page may only be applicable to the development version of Cartagen. Feel free to make notes on the wiki about which versions of Cartagen certain properties work with.
2+
3+
4+
5+
We hope to improve compatibility with other styling systems, especially Cascadenik and SLD.
6+
7+
8+
9+
GSS is uique amound geographical styling system becuase it is designed to work directly with Javascript. GSS is a subset of [JSON] that is intended to feels natural to CSS users.
10+
11+
12+
To see a fairly long GSS file, visit http://cartagen.org/glop/style.gss, or visit the StylesheetGallery
13+
14+
To use your own stylesheet, add ”?gss=http://yoursite.com/yourstylesheet.gss” to the end of your URL, like:
15+
16+
17+
18+
<code>
19+
20+
http://cartagen.org/find/sweden?gss=http://unterbahn.com/cartagen/style.gss
21+
22+
</code>
23+
24+
25+
26+
Here’s an example style from a GSS file:
27+
28+
29+
30+
<code>
31+
32+
footway: {
33+
34+
lineWidth: 2,
35+
36+
strokeStyle: "#842"
37+
38+
},
39+
40+
</code>
41+
42+
43+
44+
we also can write actual Javascript code in a style, like:
45+
46+
47+
48+
<code>
49+
50+
way: {
51+
52+
strokeStyle: function() {
53+
54+
return color_from_string(this.user)
55+
56+
},
57+
58+
lineWidth: 2,
59+
60+
fillStyle: "white"
61+
62+
},
63+
64+
</code>
65+
66+
67+
68+
The above converts the user name of the contributor (from OSM) to a hex string usable as a color.
69+
70+
71+
72+
For a complete reference, see [GssUsage].
73+
* The vast changes that is taking place in the GSS sector has made it difficult to keep updated with the same. Many of the developers are finding it difficult to cope with these changes which occur too fast. I'm trying hard to cope with these changes. [d1s]
74+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[research papers for sale](http://iresearchpapers.com/prices.php)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
asdf asdfd
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
See CartagenCoordinates for a discussion of coordinate systems.

0 commit comments

Comments
 (0)