We’re delighted to announce the beta release of our JavaScript API, eegeo.js! Now you can embed eeGeo’s beautiful and engaging maps in any web page, in minutes.

Our examples and API documentation will help you explore the features of eegeo.js. If you’re using npm, eegeo.js is available as a node package — just run npm install eegeo.js

eegeo.js and Leaflet

Our API is compatible with the popular Leaflet.js library, used by thousands of websites. If you’re already using Leaflet, it’s easy to change your 2D map for a more immersive, engaging experience. Our map objects are a direct extension of Leaflet.js map objects — just add eegeo.js to your scripts and replace L.map with L.eegeo.map. You can complement our maps with Leaflet’s CSS-customizable markers, popups, and more. We’ve extended the Leaflet API with specialized wrappers for unique eeGeo features like themes and indoor maps. We’ve also ensured the basic Leaflet geometry works in 3D, so that markers can be placed at appropriate altitudes.

Technical details

For beautiful images and outstanding performance, our maps are drawn using WebGL. WebGL unlocks the power of hardware-accelerated 3D graphics without the need for browser plugins. All good modern browsers support WebGL. We use Emscripten to compile our cross-platform C++ SDK into JavaScript, including compilation of OpenGL to WebGL. To ensure a common user experience, default interactions, including touch gestures, have been implemented to match our mobile device user interface.

About the beta

As this is a beta release, we’d love to hear your feedback! We’re already planning performance improvements, increased map coverage, and new features, but we want to hear from you. Feature requests, bugs, and other comments can be added to the github issues list. During the beta period, eegeo.js is free to use. You only need an eeGeo API key.