maplibre-gl-js
pg-mem
Our great sponsors
maplibre-gl-js | pg-mem | |
---|---|---|
55 | 12 | |
5,607 | 1,746 | |
4.3% | - | |
9.9 | 7.0 | |
2 days ago | 10 days ago | |
TypeScript | TypeScript | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
maplibre-gl-js
-
Protomaps β A free and open source map of the world
(.shp .gpkg ...) | ogr2ogr -> .geojson | tippecanoe -> .pmtiles
for OpenStreetMap data there's planetiler[4], and and openmaptiles[5] styles that work with Maplibre
with those combinations you've got a great start to something you can host for pennies on AWS S3+CloudFront or Cloudflare R2, with an open source data pipeline
-
Building a Map Application with MapLibre GL JS and Svelte
MapLibre GL JS v3.3.1
- The OpenTF Manifesto
-
Use 3D map library with API key function of Amazon Location Service
When using the Amazon Location Service, I recommend MapLibre GL JS, which I introduced in my previous article, "Amazon Location Service and AWS Amplify to Use Various Map Library," but you can also use any map library you like, including iTowns this time. I hope you will choose the map library of your choice, including iTowns!
-
Using Lidar to map tree shadows
Your browser has a very powerful image decoder built into it, offloading the PNG decoding into Javascript is very resource hungry.
Using maplibre (or any map viewer) you can load blobs of image data out of a tiff and use `Image` or `Canvas` to render the data onto a map.
Its even easier if the tiffs are already Cloud optimized as they perfectly align to a 1-to-1 map tile and they don't need to be rescaled, you can then just render the images onto the map. eg here is a viewer that loads webps out of a 15GB tiff and uses Canvas to render them onto a map [1]
Unless you are trying to layer all your maps together, you also could stop reprojecting them into webmercator, or if your goal is to layer them, then storing them in webmercator would save a ton of user's compute time.
There are a bunch of us that talk web maping and imagery in the #maplibre and #imagery slack channels in OSMUS's slack [2]
[1] https://blayne.chard.com/cogeotiff-web/index.html?view=cog&i...
[2] https://github.com/maplibre/maplibre-gl-js#getting-involved
- Apache Baremaps: online maps toolkit
-
[OC] A new map of GitHub made from 350M stars, shows 460,000 projects
The map is rendered by https://maplibre.org/, you can see how it is used here https://github.com/anvaka/map-of-github
-
[OC] I made a map of GitHub. It lets you find related projects with ease
Kudos to https://maplibre.org/ - amazing library
-
Mapping LA's Soft-Story Building Earthquake Retrofit Program [OC]
Maplibre - https://maplibre.org/
-
Geocode with OpenCage and MapLibre
OpenCage is an API Provider offering two services a geocoding service and a geosearch service MapLibre is an Open-source mapping libraries for web and mobile app developers.
pg-mem
-
Ask HN: How do you test SQL?
I was wondering the other day how to classify tests that use a test double like pg-mem, which isn't a mock but isn't the Dockerized test DB either :
So I'm not an expert, but for simplistic use cases I merely make use of https://github.com/oguimbal/pg-mem
It's a lot faster and easier than dealing with containers and the like.
-
How to test nestjs modules?
In my case, I use TypeORM with PostgreSQL, and there's pg-mem to run an instance in memory, it supports most of the common functionality of PostgreSQL but you will need to do some adjustment to your code to be within the limits.
-
Ask HN: What Are You Working On?
A pure Javascript in memory emulation of Posgres, to help writing better node tests https://github.com/oguimbal/pg-mem
-
pg-mem, an in memory postgres DB instance for your unit tests, is now bound to multiple libraries (Knex, Typeorm, Slonik, pg, pg-promise) ... suggestions for the next one ?
I've created an issue if you wish to track that.
Okay, I had a bit of spare time,I've implemented that, and it is now available with [email protected]
See documentation ("inspect a table" and "manually insert items" sections)
-
Zero delay development & unit testing iterations
To get a glimpse of what I'm talking about, you can clone this repo and follow "Development" instructions (by the way this is a small OS lib I maintain, I wrote about it here)
What are some alternatives?
Leaflet - π JavaScript library for mobile-friendly interactive maps πΊπ¦
mapbox-gl-js - Interactive, thoroughly customizable maps in the browser, powered by vector tiles and WebGL
OpenLayers3 - OpenLayers
leaflet-geoman - ππΊοΈ The most powerful leaflet plugin for drawing and editing geometry layers
folium - Python Data. Leaflet.js Maps.
ol-mapbox-style - Use Mapbox Style objects with OpenLayers
h3 - Hexagonal hierarchical geospatial indexing system
NeDB - The JavaScript Database, for Node.js, nw.js, electron and the browser
Cesium - An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
Lowdb - Simple and fast JSON database
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
leaflet-ruler - A simple leaflet plugin to measure true bearing and distance between clicked points