This responsive SVG Turkey Map has Istanbul divided by Asia/Europe and Cyprus.
First copy div.turkey-map
from public/index.html
:
<div class="turkey-map">
<svg ...>
...
</svg>
</div>
Then we need the styles, either copy their minified version from inside of public/assets/svg-turkey-map.css
or
insert the link tag in the head section of your document after copying the entire file to your path:
<link href="<your_path>/svg-turkey-map.css" rel="stylesheet" />
Finally the script, you can either just copy the minified version from public/assets/svg-turkey-map.js
or
insert a script tag in the body section at the very end. renderSvgTurkeyMap
should be called, in order to render the map:
<script src="<your_path>/svg-turkey-map.js"></script>
<script>
renderSvgTurkeyMap();
</script>
To build this project please follow these steps:
- Clone this repo
git clone https://github.com/crx4/svg-turkey-map.git
- Cd into the project folder
cd svg-turkey-map
- Install dependencies
npm install
- Start hot reload with a mini server is running on
localhost:8080
vianpm run hot
.
- SVG Turkey Map by @dnomak
- SVG Turkey Map is licensed under the MIT license.