diff --git a/examples_src/vector-labels.css b/examples_src/vector-labels.css new file mode 100644 index 0000000000..8009acb0f2 --- /dev/null +++ b/examples_src/vector-labels.css @@ -0,0 +1,37 @@ +h2 { + font-size: 1.5em; + line-height: 15px; +} + +.scale-cnt { + margin: 5px; +} + +.edit-form-ctn { +} + +.edit-form { + float: left; + margin: 5px; + width: 230px; + padding: 4px; + border: 1px solid black; +} + +.edit-form input[type="button"] { + float: right; +} + +.edit-form-elem label { + display: block; + float: left; + width: 85px; +} + +.edit-form-elem input[type="text"] { + width: 60px; +} + +.edit-form-elem select { + width: 130px; +} diff --git a/examples_src/vector-labels.html b/examples_src/vector-labels.html index 9d316e64c1..1dfaadbbf1 100644 --- a/examples_src/vector-labels.html +++ b/examples_src/vector-labels.html @@ -1,361 +1,280 @@ - - - - - - - - - - - - Vector labels example - - - - - -
- -
-
-
-
-
- -
- -

Points

-
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
-
- -
- -

Lines

-
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
-
- -
- -

Polygons

-
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
- - -
-
- -
- -
- -
-

Vector labels example

-

Example of GeoJSON features with labels.

-
-

See the vector-labels.js source to see how this is done.

-

Note: The 'Text/Wrap' option is currently not working properly. This is because ol3 uses Canvas's strokeText and fillText functions that do not support text wrapping.

-
-
geojson, vector, openstreetmap, label
-
- -
- - -
- - - - - - - +
+ +

Polygons

+
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+ + +
+
diff --git a/examples_src/vector-layer.html b/examples_src/vector-layer.html index 3589342a69..d98c05e545 100644 --- a/examples_src/vector-layer.html +++ b/examples_src/vector-layer.html @@ -1,56 +1,22 @@ - - - - - - - - - - - Vector layer example - - +--- +template: "example.html" +title: "Vector layer example" +shortdesc: "Example of a countries vector layer with country information." +docs: > + The countries are loaded from a GeoJSON file. Information about countries is shown on hover and click. Zoom in a few times to see country name labels. +tags: "vector, osm, xml, loading, server" +--- +
+
+
+
+
-