×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    3

    Stop use current location popup on ipad

    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

  2. #2
    Registered User
    Join Date
    Mar 2013
    Posts
    3

    Re: Stop use current location popup on ipad

    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) {

    }
    }
    });

  3. #3
    Registered User
    Join Date
    Mar 2013
    Posts
    3

    Re: Stop use current location popup on ipad

    Anyone any ideas?

  4. #4
    Nokia Developer Expert
    Join Date
    Mar 2012
    Posts
    65

    Re: Stop use current location popup on ipad

    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

Similar Threads

  1. MH5 Get Current location
    By tomgiam in forum [Archived] MH5: Nokia Maps Framework for mobile HTML5
    Replies: 5
    Last Post: 2013-03-20, 22:01
  2. How to get current GPS location
    By videoFx in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2009-04-07, 06:46
  3. Play and Stop Current Ring tone of Mobile
    By apus29 in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2009-02-19, 08:15
  4. How can I get the current value index in popup-field?
    By ortiv in forum Symbian User Interface
    Replies: 8
    Last Post: 2006-05-11, 11:53

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×