mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-22 06:22:16 +00:00
website
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
## How to load MapLibre?
|
## How to load MapLibre?
|
||||||
|
|
||||||
Include [MapLibre GL JS](https://maplibre.org/maplibre-gl-js/docs/) in the `<head>`. If you are using npm, you can install the `maplibre-gl` package. Make sure to import the CSS as well.
|
Include <a href="https://maplibre.org/maplibre-gl-js/docs/" target="_blank">MapLibre GL JS</a> in the `<head>`. If you are using npm, you can install the `maplibre-gl` package. Make sure to import the CSS as well.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<script src="https://unpkg.com/maplibre-gl/dist/maplibre-gl.js"></script>
|
<script src="https://unpkg.com/maplibre-gl/dist/maplibre-gl.js"></script>
|
||||||
|
|||||||
@@ -6,16 +6,16 @@ import { Content as MapboxText } from '../content/how_to_use/mapbox.md'
|
|||||||
import { Content as LeafletText } from '../content/how_to_use/leaflet.md'
|
import { Content as LeafletText } from '../content/how_to_use/leaflet.md'
|
||||||
import { Content as MobileText } from '../content/how_to_use/mobile.md'
|
import { Content as MobileText } from '../content/how_to_use/mobile.md'
|
||||||
import { Content as CustomStylesText } from '../content/how_to_use/custom_styles.md'
|
import { Content as CustomStylesText } from '../content/how_to_use/custom_styles.md'
|
||||||
|
import { Content as SelfHostingText } from '../content/how_to_use/self_hosting.md'
|
||||||
---
|
---
|
||||||
|
|
||||||
<Layout title="How to use OpenFreeMap in your website or app">
|
<Layout title="How to use OpenFreeMap in your website or app">
|
||||||
<h1>How to use OpenFreeMap in your website or app</h1>
|
<h1>How to use OpenFreeMap in your website or app</h1>
|
||||||
|
|
||||||
<!--<input type="checkbox" id="col1" class="col-chk" />-->
|
|
||||||
<!--<label for="col1" class="col-lbl">How to load MapLibre?</label>-->
|
|
||||||
<MaplibreText />
|
<MaplibreText />
|
||||||
<MapboxText />
|
<MapboxText />
|
||||||
<LeafletText />
|
<LeafletText />
|
||||||
<MobileText />
|
<MobileText />
|
||||||
<CustomStylesText />
|
<CustomStylesText />
|
||||||
|
<SelfHostingText />
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|||||||
@@ -154,17 +154,19 @@ p {
|
|||||||
|
|
||||||
pre {
|
pre {
|
||||||
/*background: #efefef;*/
|
/*background: #efefef;*/
|
||||||
font-size: 14px;
|
|
||||||
max-width: 600px;
|
max-width: 600px;
|
||||||
margin: 0 auto 0.6em;
|
margin: 0 auto 0.6em;
|
||||||
|
font-size: 14px;
|
||||||
/*overflow: scroll;*/
|
/*overflow: scroll;*/
|
||||||
/*font-weight: bold;*/
|
/*font-weight: bold;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/*code {*/
|
|
||||||
/* font-family: 'Nimbus Mono PS', 'Courier New', monospace !important;*/
|
code {
|
||||||
|
font-size: 14px;
|
||||||
|
/*font-family: 'Nimbus Mono PS', 'Courier New', monospace !important;*/
|
||||||
/* background: #efefef;*/
|
/* background: #efefef;*/
|
||||||
/*}*/
|
}
|
||||||
|
|
||||||
#map-container {
|
#map-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
Reference in New Issue
Block a user