Interactive SVG layer example

This commit is contained in:
Andreas Hocevar
2019-12-01 12:16:39 +01:00
parent c70e385398
commit d3b492d175
6 changed files with 5276 additions and 0 deletions

9
examples/svg-layer.html Normal file
View File

@@ -0,0 +1,9 @@
---
layout: example.html
title: SVG Layer
shortdesc: Example of a map with an interactive svg layer.
docs: >
With a plain `ol/Layer` and a `render` function, we can use an interactive svg as layer. Hover over countries to see the interactivity that is defined purely with a css `:hover` pseudo-class.
tags: "svg, layer, render, transform"
---
<div id="map" class="map"></div>