Add example for rendering custom point symbols

This commit is contained in:
Andreas Hocevar
2015-12-06 16:52:41 +01:00
parent 867bcce1cc
commit 0050f00703
3 changed files with 84 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
---
layout: example.html
title: Earthquakes with custom symbols
shortdesc: Demonstrates the use of `ol.render.toCanvas` to create custom icon symbols.
docs: >
This example parses a KML file and renders the features as a vector layer. The layer is given a <code>style</code> that renders earthquake locations with a custom lightning symbol and a size relative to their magnitude.
tags: "KML, vector, style, canvas, symbol"
---
<div id="map" class="map"></div>