[FogBugz #257] Géolocalisation en HTML5 #320

Open
opened 2023-07-04 07:03:12 +02:00 by fbenoist68 · 7 comments

Assigned To: CLOSED
Project: Mobile Portal
Area: Divers
Category: Fonctionnalité
Priority: A fixer impérativement

Assigned To: CLOSED Project: Mobile Portal Area: Divers Category: Fonctionnalité Priority: A fixer impérativement
Poster
Owner

Event ID: 1360
Date: 2014-06-25T05:35:26Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

Event ID: 1360 Date: 2014-06-25T05:35:26Z Person: Frederik Benoist Description: Modifié par Frederik Benoist
Poster
Owner

Event ID: 1152
Date: 2014-02-01T12:34:24Z
Person: Frederik Benoist
Description: Fermé par Frederik Benoist

Event ID: 1152 Date: 2014-02-01T12:34:24Z Person: Frederik Benoist Description: Fermé par Frederik Benoist
Poster
Owner

Event ID: 1151
Date: 2014-02-01T12:34:24Z
Person: Frederik Benoist
Description: Resolved (Implemented) and assigned to Frederik Benoist by Frederik Benoist

Event ID: 1151 Date: 2014-02-01T12:34:24Z Person: Frederik Benoist Description: Resolved (Implemented) and assigned to Frederik Benoist by Frederik Benoist
Poster
Owner

Event ID: 1150
Date: 2014-02-01T12:34:17Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

 

                        if (navigator.geolocation) {
                            navigator.geolocation.getCurrentPosition(function(position) {
                                // initialise carte centrée sur position actuelle
                                g_map.setCenter(position.coords.latitude, position.coords.longitude);
                            }, function() {
                                handleNoGeolocation(true);
                            });
                        } else {
                            // Browser doesn't support Geolocation
                            handleNoGeolocation(false);
                        }
Event ID: 1150 Date: 2014-02-01T12:34:17Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> &nbsp;</p> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (navigator.geolocation) {</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; navigator.geolocation.getCurrentPosition(function(position) {</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // initialise carte centr&eacute;e sur position actuelle</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; g_map.setCenter(position.coords.latitude, position.coords.longitude);</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }, function() {</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; handleNoGeolocation(true);</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Browser doesn&#39;t support Geolocation</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; handleNoGeolocation(false);</div> <div> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div>
Poster
Owner

Event ID: 1109
Date: 2014-01-15T06:07:03Z
Person: Frederik Benoist
Description: Modifié par Frederik Benoist

http://html5demos.com/geo

http://www.alsacreations.com/tuto/lire/926-geolocalisation-geolocation-html5.html

http://www.w3schools.com/html/html5_geolocation.asp

Event ID: 1109 Date: 2014-01-15T06:07:03Z Person: Frederik Benoist Description: Modifié par Frederik Benoist <p> http://html5demos.com/geo</p> <p> http://www.alsacreations.com/tuto/lire/926-geolocalisation-geolocation-html5.html</p> <p> http://www.w3schools.com/html/html5_geolocation.asp</p>
Poster
Owner

Event ID: 1108
Date: 2014-01-15T06:06:04Z
Person: Frederik Benoist
Description: Attribué à Frederik Benoist par Frederik Benoist

Event ID: 1108 Date: 2014-01-15T06:06:04Z Person: Frederik Benoist Description: Attribué à Frederik Benoist par Frederik Benoist
Poster
Owner

Event ID: 1107
Date: 2014-01-15T06:06:03Z
Person: Frederik Benoist
Description: Ouvert par Frederik Benoist

Event ID: 1107 Date: 2014-01-15T06:06:03Z Person: Frederik Benoist Description: Ouvert par Frederik Benoist
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: fbenoist68/mobileportal#320
There is no content yet.