Skip to content

Commit

Permalink
Readme tidyup
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Scotney committed Dec 2, 2021
1 parent c2aa8d5 commit 902a84a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,22 @@ Contributions are welcome - PRs for missing features (event handling, proper upd
For client-side and server-side Blazor - add the below script sections (and optional css) to index.html or _Host.cshtml/_Layout.cshtml

```xml
<link href="_content/UnlockedData.Mapael/mapael.css" rel="stylesheet"/>
<link href="_content/UnlockedData.Mapael/mapael.css" rel="stylesheet"/>

.....
.....

<script src="_content/UnlockedData.Mapael/js/mapael.dependencies.js"></script>
<script src="_content/UnlockedData.Mapael/js/mapael.js"></script>
<script src="_content/UnlockedData.Mapael/js/unlockeddata.mapael.js"></script>
<script src="_content/UnlockedData.Mapael/js/mapael.dependencies.js"></script>
<script src="_content/UnlockedData.Mapael/js/mapael.js"></script>
<script src="_content/UnlockedData.Mapael/js/unlockeddata.mapael.js"></script>
```

For maps to render, you must provide the SVG data. Some are bundled with the library as they were used to make the demo. If you want to use your own map, you certainly can by following the guide [here](https://www.vincentbroute.fr/mapael/create-map.php)

```xml

<script src="_content/UnlockedData.Mapael/js/maps/world_countries_miller.js"></script>
<script src="_content/UnlockedData.Mapael/js/maps/france_departments.js"></script>
<script src="_content/UnlockedData.Mapael/js/maps/world_countries_miller.js"></script>
<script src="_content/UnlockedData.Mapael/js/maps/france_departments.js"></script>

```

To put a simple map on the page, add the following component
Expand Down

0 comments on commit 902a84a

Please sign in to comment.