Here are my code. Works fine simulator, not in Device.

mapContainer = document.getElementById("mapContainer");

infoBubbles = new nokia.maps.map.component.InfoBubbles();
infoBubbles.options.set("defaultXAlignment", infoBubbles.ALIGNMENT_LEFT);
infoBubbles.options.set("defaultYAlignment", infoBubbles.ALIGNMENT_ABOVE);



if ("geolocation" in navigator) {
var options = {
  enableHighAccuracy: true,
  timeout: Infinity,
  maximumAge: 0
};
navigator.geolocation.getCurrentPosition(successfull, errorfull, options);
} else {alert("Error");}

 }

 function successfull(position) {
 var coords = position.coords,
marker = new nokia.maps.map.StandardMarker(coords),
accuracyCircle = new nokia.maps.map.Circle(coords, coords.accuracy);
selfCoord = position.coords;
myMap = nokia.maps.map,
                map = new myMap.Display(mapContainer, {
                    center: coords, zoomLevel: 16,
                    components: [             new
nokia.maps.map.component.Behavior(),
            new nokia.maps.map.component.ZoomBar(),

            //new nokia.maps.positioning.component.Positioning(),

                  infoBubbles ]
                }),
 router = new nokia.maps.routing.Manager();
 map.objects.addAll([accuracyCircle, marker]);
}

 function errorfull() {
 console.log("ERROR");
 }

---------- Forwarded message ----------
From: Simon BLUM <[email protected]>
Date: 2013/8/14
Subject: Re: [b2g] Fwd: Firefox OS Geolocation Maps
To: [email protected]


As JBC wrote, can you send us your code ? or link to your GitHub if you
want some help.

Regards

Simon

Le 14/08/13 23:40, Zsolt Réczi a écrit :

> I founded something strange. My Geeksphone Keon can't get geolocation. Does
> anybody know why?
>
> ---------- Forwarded message ----------
> From: Simon BLUM <[email protected]>
> Date: 2013/8/14
> Subject: Re: [b2g] Firefox OS Geolocation Maps
> To: [email protected]
>
>
> Hi Zsolt,
>
> I developped RunRunRun (a runkeeper like for FirefoxOS and it uses
> Geolocation) , I think I can help you.
> My source code is available there : https://github.com/guizmo51/**
> Run-Run-Run 
> <https://github.com/guizmo51/**Run-Run-Run<https://github.com/guizmo51/Run-Run-Run>
> >
>
>
> I don't understand what's wrong. Can you explain ? What's the relation
> between Geolocation and your map ? Do you have log ?
>
> Simon
>
> Le 14/08/13 15:18, Zsolt Réczi a écrit :
>
>  Hello,
>>
>> I need a help in Geolocation. I'm trying to make a Map app for Firefox OS
>> which request the users location. In Simulator it is running very nice,
>> but
>> when i start it on a real device the map isn't loading. What can be the
>> problem?
>>
>> Zsolt Reczi
>> ______________________________****_________________
>> dev-b2g mailing list
>> [email protected]
>> https://lists.mozilla.org/****listinfo/dev-b2g<https://lists.mozilla.org/**listinfo/dev-b2g>
>> <https://**lists.mozilla.org/listinfo/**dev-b2g<https://lists.mozilla.org/listinfo/dev-b2g>
>> >
>>
>>  ______________________________****_________________
> dev-b2g mailing list
> [email protected]
> https://lists.mozilla.org/****listinfo/dev-b2g<https://lists.mozilla.org/**listinfo/dev-b2g>
> <https://**lists.mozilla.org/listinfo/**dev-b2g<https://lists.mozilla.org/listinfo/dev-b2g>
> >
>
> ______________________________**_________________
> dev-b2g mailing list
> [email protected]
> https://lists.mozilla.org/**listinfo/dev-b2g<https://lists.mozilla.org/listinfo/dev-b2g>
>

______________________________**_________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/**listinfo/dev-b2g<https://lists.mozilla.org/listinfo/dev-b2g>
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to