MateMonkey / frontend

The AngularJS Frontend for matemonkey.com
https://matemonkey.com
8 stars 3 forks source link

Add geolocation getCurrentPosition / current map location onLoad #21

Closed CodeBrauer closed 6 years ago

CodeBrauer commented 8 years ago

enhancement idea:

navigator.geolocation.getCurrentPosition(onSuccess, onError);

function onSuccess(position) {
  console.log(position.coords.latitude, position.coords.longitude);
}

So you have an onLoad event for this and center the map to the current position. That would be awesome

CodeBrauer commented 8 years ago

related to #10

mguentner commented 8 years ago

Sure. If you want, you can fork the project and create a PR! :muscle:

CodeBrauer commented 6 years ago

This seems to be already implemented.