jmap.js
Public repository for Jibestream's Javascript SDK and plugins. See http://www.jibestream.com
Jibestream's Web SDK. Compatible with the Jibestream Application Core Service (JACS)
Quick Start:
Using CDN (Recommended):
<script src="https://cdn.jibestream.com/web/{VERSION}/jmap.min.js"></script>
Using Browserify or Webpack
npm install jmap.js
import jmap from 'jmap.js'
Quick Start
import jmap from 'jmap.js'
// Create a core data object with your customerId & authentication
const core = new jmap.core.JCore({
auth: new jmap.core.Auth('clientId', 'clientSecret'),
customerId: 1
})
// Create an ActiveVenue with the default building using the venue ID
const venueId = 2
core.populateVenueWithDefaultBuilding(venueId, (error, activeVenue) => {
if (error) throw error
// Create the view controller
const control = new jmap.JController({ activeVenue })
// Show map
control.showDefaultMap()
})