Printing Mapbox GL JS maps in Firefox
I’m making a print/embed thing with Mapbox GL JS, and one of the problems I ran into involved printing with Firefox. As in, it doesn’t print.
I’m making a print/embed thing with Mapbox GL JS, and one of the problems I ran into involved printing with Firefox. As in, it doesn’t print.
Of late I have been leveraging ES2015 classes for my map components. It’s a good thing to do.
That’s Charlotte-Mecklenburg GIS User Group for those that don’t speak acronym.
I had a free day and decided to do a new map style for April Fool’s Day. This seemed less likely to get me yelled at than, say, setting everyone’s appraisal value to $0.
My migration of GeoPortal from Leaflet to Mapbox GL JS is live (Github). I’m using a combination of OSM2VectorTiles, some vector tiles of our own data created with Tippecanoe, and a few WMS raster overlays here and there from GeoServer. I’ve passed five hours in the office without anybody flinging feces at me, which is my most reliable success metric.
### TL;DR
**The Good**
* Snappy performance *after* initial load
* Lower network traffic *after* initial page load
* Vector tile goodness
The Bad
The Ugly
I’ve been moving GeoPortal to Mapbox GL JS, and one of the pain points I hit is the lack of WMS support. That’s one of those I don’t like it but I understand things.