Skip to content

rclark/server-side-leaflet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

server-side-leaflet

Use Leaflet on the server with help from jsdom.

All this does is

  • spoof the window and DOM with jsdom,
  • fix the size of the map to 1024x1024,
  • set L.Icon.Default.imagePath to some nonsense,
  • and then let Leaflet do the rest.

I concatenated Leaflet.markercluster here, in order to use it to do clustering server-side. See the example.

About

Spoof the DOM and run Leaflet on the server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published