How do I stop the "use current location" popup on iphone and ipad.
I am passing in the long and lat so dont want the user to use that option.
Gerard
How do I stop the "use current location" popup on iphone and ipad.
I am passing in the long and lat so dont want the user to use that option.
Gerard
Here is my code
var map = new nokia.mh5.components.Map({
center: {
longitude: -2.095995,
latitude: 57.157674,
},
position:null,
zoom: 12,
schema: "normal.day",
tracking: null,
addressLookup:null,
infoBubble:null,
search:null,
positionDisabled:null,
settingsButton:null,
positionButton:null,
mapLogo:null,
listeners: {
poiclick: function(e) {/*your listener*/
console.log(e.data[0].data);
long = e.data[0].data.longitude;
lat = e.data[0].data.latitude;
title = e.data[0].data.name;
openDetails(long,lat,title);
},
mapmovestart: function() {/*your listener*/},
mapmoveend: function(e) {/*your listener*/
//---- get current position and zoom ----
},
mapclick: function(e) {/*your listener*/},
mapdblclick: function(e) {/*your listener*/},
maplongpress: function(e) {/*your listener*/
},
maptrackingstart: function() {/*your listener*/},
maptrackingend: function() {/*your listener*/},
mapzoomchange: function(e) {/*your listener*/
loadMapLocations(map.box[0]['latitude'],map.box[0]['longitude'],map.box[1]['latitude'],map.box[1]['longitude'],map.zoom)
},
ready: function(e) {
}
}
});
Hello Gerard,
with the current implementation you need to use the following workaround:
nokia.mh5.geolocation.disable();
var map = new nokia.mh5.components.Map({
center: {
longitude: 0.5,
latitude: 51.32
},
zoom: 14
});
But it would mean entire geolocation handling will have to be implemented by you.
Br,
Leo