diff --git a/examples_src/image-filter.html b/examples_src/image-filter.html index 1b0b2fede3..42613c1864 100644 --- a/examples_src/image-filter.html +++ b/examples_src/image-filter.html @@ -1,65 +1,24 @@ - - - - - - - - - - - Image Filter Example - - - - - -
- -
-
-
-
-
- -
- -
-

Image filter example

-

Apply a filter to imagery

- -
-

- Layer rendering can be manipulated in precompose and postcompose event listeners. - These listeners get an event with a reference to the Canvas rendering context. - In this example, the postcompose listener applies a filter to the image data. -

-

See the image-filter.js source for details on how this is done.

-
-
filter, image manipulation
-
- -
- -
- - - - - - - +--- +template: "example.html" +title: "Image Filter Example" +shortdesc: "Apply a filter to imagery" +docs: > +

Layer rendering can be manipulated in precompose and postcompose event listeners. + These listeners get an event with a reference to the Canvas rendering context. + In this example, the postcompose listener applies a filter to the image data.

+tags: "filter, image manipulation" +--- +
+
+
+
+
+ \ No newline at end of file diff --git a/examples_src/image-load-events.css b/examples_src/image-load-events.css new file mode 100644 index 0000000000..0bd164d656 --- /dev/null +++ b/examples_src/image-load-events.css @@ -0,0 +1,15 @@ +.map { + background: #E0ECED; +} +.wrapper { + position: relative; +} +#progress { + position: absolute; + bottom: 0; + left: 0; + height: 2px; + background: rgba(0, 60, 136, 0.4); + width: 0; + transition: width 250ms; +} \ No newline at end of file diff --git a/examples_src/image-load-events.html b/examples_src/image-load-events.html index a979d70284..b0074de315 100644 --- a/examples_src/image-load-events.html +++ b/examples_src/image-load-events.html @@ -1,79 +1,18 @@ - - - - - - - - - - - Image load events example - - - - - - -
- -
-
-
-
-
-
- -
- -
-

Image load events example

-

Example using image load events.

-
-

- Image sources fire events related to image loading. You can - listen for imageloadstart, imageloadend, - and imageloaderror type events to monitor image loading - progress. This example registers listeners for these events and - renders an image loading progress bar at the bottom of the map. -

-

- See the image-load-events.js source - for more detail on how this is done. -

-
-
image, events, loading
-
- -
- -
- - - - - - - +--- +template: "example.html" +title: "Image load events example" +shortdesc: "Example using image load events." +docs: > +

Image sources fire events related to image loading. You can + listen for imageloadstart, imageloadend, + and imageloaderror type events to monitor image loading + progress. This example registers listeners for these events and + renders an image loading progress bar at the bottom of the map.

+tags: "image, events, loading" +--- +
+
+
+
+
+
\ No newline at end of file diff --git a/examples_src/image-vector-layer.html b/examples_src/image-vector-layer.html index 2de416994b..f9eb402a97 100644 --- a/examples_src/image-vector-layer.html +++ b/examples_src/image-vector-layer.html @@ -1,59 +1,20 @@ - - - - - - - - - - - Image vector layer example - - - -