avuxi-loader
avuxi-loader helps to load and initialize avuxi library.
Install
npm install --save avuxi-loader
Usage
{ }
API
avuxi(apiKey, googleMap, options=DEFAULT_OPTIONS)
Arguments
apiKey
(String): API key from avuxi dashboardgoogleMap
(Object): Instance ofgoogle.maps.Map
options
(Object): Extra options for loading avuxi script
DEFAULT_OPTIONS = availableLocales: 'en' 'de' callback: 'avapilLoaded' locale: 'en' scriptId: 'vxscript' type: 'sights' // one from ['sights', 'eating', 'shopping', 'partying'] url: 'https://m.avuxiapis.com/av'
Run example locally
- Create a file
./example/config.local.js
with your API keys
const AVUXI_USER_ID = 'your-id-from-avuxi-dashboard'const GOOGLE_API_KEY = 'your-api-key-from-google-dashboard'
- Run the webpack dev server
npm run example# ➡ http://localhost:8080/example
License
MIT © Alexander Gudulin