Abstract L and SVG pane to React

This commit is contained in:
Franc Camps-Febrer
2018-12-19 07:48:13 +01:00
parent 1ddaf2a856
commit 8765b118ce
4 changed files with 126 additions and 109 deletions

View File

@@ -0,0 +1,14 @@
import React from 'react';
const MapDefsMarkers = ({}) => (
<defs>
<marker id="arrow" viewBox="0 0 6 6" refX="3" refY="3" markerWidth="6" markerHeight="6" orient="auto">
<path d="M0,3v-3l6,3l-6,3z" style="fill: red;"></path>
</marker>
<marker id="arrow-off" viewBox="0 0 6 6" refX="3" refY="3" markerWidth="6" markerHeight="6" orient="auto">
<path d="M0,3v-3l6,3l-6,3z" style="fill: black; fill-opacity: 0.2;"></path>
</marker>
</defs>
);
export default MapDefsMarkers;