Skip to content

Commit

Permalink
docs: remove part of import renderer solely
Browse files Browse the repository at this point in the history
  • Loading branch information
Hsieh Chin Fan committed Nov 8, 2024
1 parent ef149f3 commit d51ad5b
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,20 +443,6 @@ use: Maplibre
console('This is the second YAML doc');
```

### Strictly use a default renderer

By default, `mapclay.render()` and `mapclay.renderByYaml()` dynamically import ES6 module by option `use`. It takes time and may fails. If you want to stick to a single Renderer, try to replace script URL with default Renderers:

```html
<!-- Specify Renderer by use option -->
<script src='https://unpkg.com/mapclay/dist/mapclay.js'></script>
<!-- Can only use Renderer comes from the following packages -->
<script src='https://unpkg.com/mapclay/dist/renderers/leaflet.js'></script>
<script src='https://unpkg.com/mapclay/dist/renderers/maplibre.js'></script>
<script src='https://unpkg.com/mapclay/dist/renderers/openlayers.js'></script>
```

## TODOs

- Features
Expand Down

0 comments on commit d51ad5b

Please sign in to comment.