Skip to content

Martin vector tile server #218

Discussion options

You must be logged in to vote

It was the sourceLayer that was the issue. I tried out the url option but that didn't work, it seems it needs the tile attribute

<script>
    import { MapLibre, VectorTileSource, LineLayer } from 'svelte-maplibre';
</script>

<div>
    <MapLibre
        style="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json"
        standardControls
        center={[174.833955, -36.745966]}
        class="map"
        zoom={10}>
        <VectorTileSource
            tiles={['http://localhost:3000/community_board_2018_clipped_generalised/{z}/{x}/{y}']}>
            <LineLayer
                paint={{
                    'line-opacity': 0.6,
                    'line-color': 'rgb(53, 175, 109)…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@dimfeld
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by dimfeld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants