Skip to main content

Questions tagged [maplibre-gl]

MapLibre GL is a community-led fork derived from mapbox-gl-js before their switch to a non-OSS license.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

MapLibre : Issue with style.json and tiles vector declarations in HTML

As explained and asked in Slack Forum : https://osmus.slack.com/archives/C01G3D28DAB/p1721219062146369?thread_ts=1721213195.422509&cid=C01G3D28DAB I want to use this TileServer: https://tileserver....
Raphael10's user avatar
  • 101
1 vote
1 answer
97 views

Two MapLibre GL JS raster layers pointing to same Geoserver layer

Is it possible to use in MapLibre GL two raster layers on the same time that point to the same Geoserver layer? I defined two raster layers in maplibreGL pointing to the same Geoserver layer. One are ...
user1249791's user avatar
1 vote
1 answer
39 views

Fuzzy contours on MapLibre GL JS sprites

I am using sprites in a MapLibre GL JS map. Unfortunately the contours of the sprites are fuzzy. This is not so noticeable with small symbols, but with larger ones it no longer looks good. I created ...
pascatl's user avatar
  • 1,079
0 votes
0 answers
56 views

Amazon AWS website location

I'm trying to add a layer to my AWS Amplify map to be displayed in an HTML map for others to use. I can't seem to grasp the concept of the 'GetMap' capability that was stated in the AWS documentation-...
George's user avatar
  • 1
0 votes
1 answer
449 views

Setting up MapLibre, osm2pgsql and Martin Tile Server

I want to display dynamic maps served by the Martin tile server. TLDR: I don't know if the bug comes from the MapLibre code or the Martin tile server. I just created a repo for testing, it tries to ...
Big_Boulard's user avatar
1 vote
0 answers
123 views

Leaflet maplibre gl use custom CRS

I need to use CRS 2056 with leaflet and maplibre leaflet-maplibre-gl.js to display vector tiles. Using this code <html> <head> !-- Version 3.0 --> <!-- full stretch --> &...
scriptDaddy's user avatar
1 vote
1 answer
136 views

Leaflet and maplibre remove a layer from a vector tiles style set

Using maplibre-gl-leaflet I want to load an existing vector tiles styles from style.json and remove its background raster layer with the id "swissimage" and then add a raster dataset URL ...
scriptDaddy's user avatar
1 vote
0 answers
118 views

maplibregl/mapboxgl color transitions get lost after setPaintProperty

I want my features to smoothly transition different to colors based on its data. For this I apply a new map.setPaintProperty but then the 'fill-color-transition' property becomes lost, forever.. Some ...
user1249791's user avatar
0 votes
0 answers
67 views

MapLibre JS Side by Side 2 Maps Sync

Previously I developed a map portal using Leaflet. I want to use MapLibre JS now. It has two same maps side by side like the following UI. The main functionality is to pan and zoom the map at the same ...
Devils Dream's user avatar
  • 3,189
0 votes
0 answers
509 views

How to display PBF tiles on MapLibre GL JS

I am new to MapLibre, I used to work a lot with Leaflet. I am trying to display PBF vector tiles generated from QGIS, which I cannot display with Leaflet (I have errors trying to use Leaflet....
Arkeen's user avatar
  • 363
0 votes
2 answers
121 views

Missing line segment when serving a vector tile from PostGIS

I'm hosting a table of four points in PostGIS and querying it to create a vector tile layer of a line connecting the points. The second and fourth points in the table are the same. The resulting ...
mhkeller's user avatar
  • 181
0 votes
0 answers
163 views

GeoServer CORS error for EPSG:3857 GeoJSON

We want to add the data we published from GeoServer (original EPSG 4326 but I published as 3857) as a layer to Maplibre as mbtiles and GeoJSON with WMS. While the system in mbtiles format works, the ...
Iroh's user avatar
  • 159
1 vote
0 answers
41 views

How to achieve the spiderify behaviour while rendering markers which has same coordinates in maplibre-gl?

When I'm trying to render the markers which has same coordinates, it overlaps with one another and the markers are not visible while zooming in and out. How can I achieve that spiderify behaviour with ...
piruthivi raj's user avatar
0 votes
0 answers
97 views

Load MapLibre JSON URL to Maputnik editor

I am setting up my own tile server. I am using MapLibre Martin tile server for this. Looking at its url schemes I dont see any where it returns .json URLs. I am essentially trying to load it as a data ...
N0mi's user avatar
  • 101
0 votes
0 answers
345 views

Maplibre Martin tileserver not rendering mbtiles

I have just downloaded Martin and is not able to render mbtiles. I have two mbtiles files of small-ish areas in London (around 20mbs each). It's been so far 1h but no rendering, it only says the ...
user18140022's user avatar
1 vote
1 answer
220 views

maplibre-gl-leaflet treating drag as click

I have a vector tile set that I need to display as part of an existing Leaflet based application, and so I am using maplibre-gl-leaflet to render the vector data. I also need to attach a handler that ...
Dan's user avatar
  • 45
0 votes
1 answer
199 views

Removing popup programmatically does not work in MapLibre JS

Removing programmatically a popup does not work. Popup created OK, as: map.on('click', function(e) {new maplibregl.Popup().setLngLat(e.lngLat).setHTML('MODIFICATIONS').addTo(map);}); Deleting ...
Angile's user avatar
  • 1
0 votes
2 answers
670 views

MapLibreGl, how to use it with specific Tiles? [closed]

On a personal site, I use leaflet to display a map. var cartoDb = L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', { attribution: '&copy; <a href="https://...
blogob's user avatar
  • 251
0 votes
0 answers
564 views

Specifying style on WMS maplibre

I am trying to visualise a WMS layer on maplibre the layer comes from GeoServer, the code that works in Leaflet is as follows var wmsLayertest = L.tileLayer.wms('http://139.84.229.39:8080/geoserver/...
Collins Asega's user avatar
0 votes
1 answer
161 views

Referencing features not in brackets in GeoJSON

I'm using this maplibre example to create a hover effect over GeoJSON features: https://maplibre.org/maplibre-gl-js-docs/example/hover-styles/ The GeoJSON looks like this: { "type": "...
HalPlz's user avatar
  • 15
1 vote
1 answer
156 views

Is styling also defined in vector data or all in style.json

I'm using the style editor in maptiler cloud with an openmaptiles base map. It uses opacity and zoom stops to transition between different layers as you zoom in. For example, landcover_wood shows from ...
HalPlz's user avatar
  • 15
1 vote
0 answers
186 views

Mapbox vector tile source from more tilesets, or layer with more sources?

I have a huge amount of data to generate into vector tiles, but only the same 10% is changing in the tilesets. The data type is the same, so i cannot separate it into different layers because it would ...
David Gregor's user avatar
1 vote
1 answer
261 views

Convert maplibrejs url coordinates to mbtiles tile_coumn and tile_row

I am using maplibrejs as my front end framework it makes request like this : http://localhost:8080/gis/14/9240/2582 to my backend code to get tiles. As my backend I have used tileserver-gl, which ...
Anurag Vohra's user avatar
0 votes
0 answers
995 views

CORS in Maplibre

The problem is reproduced in URL below: https://jsfiddle.net/kochizufan/e8jgbu9q/ const libre = new maplibregl.Map({ container: 'libre', style: { version: 8, sources: { s_contour7: { ...
kochizufan's user avatar
3 votes
0 answers
977 views

Projection XY with maplibre

I am using Leaflet with crs: L.CRS.Simple for a game map(XY coords) with "leaflet-rastercoords" https://github.com/commenthol/leaflet-rastercoords and want to switch to maplibre (aka Mapbox)....
SERG's user avatar
  • 273
0 votes
2 answers
256 views

var_dump on a MBTiles file

Is it possible to do something simlar to var_dump() on an MBTiles files to see exactly what data is inside? So I can then see what keys I need to extract bits of (vector) data. Or is there a program ...
essexboyracer's user avatar
3 votes
0 answers
755 views

3D buildings from OSM data for historical interaction

What I am trying to do: Have a 3D interactive map, embedded on a website, that allows viewers to click on buildings which opens up a 'more info' HTML overlay with links/text/images about that specific ...
essexboyracer's user avatar
1 vote
1 answer
2k views

GeoServer vector tiles and MapBox (maplibre) gl js

I have a similar problem to this one: Mapbox Vector Tiles from Geoserver 2.11 in Mapbox GL JS I'm trying to do the same (just with maplibre-gl-js, a fork of MapBox GL js v1) and GeoServer (2.20.1) ...
Kev 123's user avatar
  • 51