forked from RandomEtc/nodemap
-
Notifications
You must be signed in to change notification settings - Fork 0
bensheldon/nodemap
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is an extremely naive proof-of-concept. It will render polygons and lines from GeoJSON files into 256x256px mercator tiles suitable for overlaying on Google Maps (or Bing Maps, MapQuest, Yahoo Maps, OpenLayers or Tile5 or Polymaps or Modest Maps). There is no spatial indexing so every feature is drawn for every tile. Data is loaded from GeoJSON files so large data sources aren't possible (v8 doesn't like evaling or JSON.parsing 100MB files) I'm experimenting with simple caching to disk which currently seems to break (but not straight away). Contributions welcome! It would probably tidy this up a lot to factor out the rendering into its own reusable file and handle URL matching, static files etc with Connect or Express. For reasons that aren't entirely clear to me, I didn't use my existing javascript canvas map rendering code from. It would be nice to integrate these two projects and have some code that could work on client or server depending on your needs. https://github.com/RandomEtc/js-vector-maps https://github.com/RandomEtc/shapefile-js might also be relevant, there's more canvas rendering ideas in there. This is the first time I've used npm to manage a project, it's not published yet though, I'm still digesting everything it can do: http://blog.izs.me/post/1675072029/10-cool-things-you-probably-didnt-realize-npm-could-do
About
quick map tile renderer for nodejs camp
Resources
Code of conduct
Security policy
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published