Hey, guys. I am making a location-aware app using the
AppFurnace platform.
The prototype app works on location.
I am now making a 'play at home' version of the app. I can't figure it out though. Beginner at this stuff. The only forum thread that exists is
https://appfurnace.zendesk.com/entri...rkers-to-a-map at the bottom of the page.
My code currently reads:
Code:
function openUrl() {
af.openLinkInWebBrowser("http://www.wshc.eu/lacock/");
}
var a = new af.Audio("Red Lion/RedLion.mp3");
var b = new af.Audio("Church/church script.mp3");
var c = new af.Audio("Sign of the Angel/angel script.mp3");
function playAudioZone1() {
a.play();
b.stop();
c.stop();
}
function playAudioZone1Out() {
a.stop();
}
function playAudioZone2() {
b.play();
a.stop();
c.stop();
}
function playAudioZone2Out() {
b.stop();
}
function playAudioZone3() {
c.play();
a.stop();
b.stop();
}
af.geoFeatures.setVisible(true);
var pbpoint = af.geoFeatures.getFeatureByName("Red_Lion_");
pbpoint.setMarkerImage("quill.png",100,100,"center","center");
pbpoint.setMarkerClick(markerClicked);
function markerClicked() {
popup("Red Lion", playAudioZone1() + " Red Lion");
}
If anyone can help it would be greatly appreciated. I need help from the af.geoFeatures.setVisible(true); line onwards
Mat