From 78c09a0ff6d93bdbd020f325b1ee7ecb670c3a4c Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Fri, 17 May 2019 14:48:03 +0200 Subject: [PATCH] Add svg icon example --- examples/data/square.svg | 7 +++++++ examples/icon-color.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 examples/data/square.svg diff --git a/examples/data/square.svg b/examples/data/square.svg new file mode 100644 index 0000000000..0b7a912a53 --- /dev/null +++ b/examples/data/square.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/examples/icon-color.js b/examples/icon-color.js index f69c2cffde..34a5e631b9 100644 --- a/examples/icon-color.js +++ b/examples/icon-color.js @@ -25,7 +25,7 @@ rome.setStyle(new Style({ image: new Icon({ color: '#8959A8', crossOrigin: 'anonymous', - src: 'data/dot.png' + src: 'data/square.svg' }) }));