Move your mouse over the markers on the map below to see and hear the different ways you can use sound on an interactive map. You can make sounds play, or stop playing, when the mouse moves over or off of a marker, or clicks a marker.
MapsAlive lets you play MP3 audio using SoundManager 2 from Scott Schiller. SoundManager is a JavaScript library that utilizes Flash to play sounds.
The MapsAlive JavaScript API serves as a wrapper around SoundManager to make it as easy as possible for you to play sounds from your interactive maps. You play a sound by calling the playSound function and stop a sound by calling the stopSound function. You can put these calls in your hotspot handlers for mouse over, mouse out, and click. You can also use the Custom HTML feature to play a sound when your tour first loads.
Thank you to Mike Koenig who recorded some of the sounds used in this sample.
How do I play a sound (audio)?
See the SoundManager section in the MapsAlive User Guide for JavaScript API.
Note: The MP3 files containing your sounds must be located at a URL somewhere on the internet. MapsAlive does not provide a way for you to upload or store audio files.
| |
|