Step (on grails 1.3.7):
-install the plugin
-add geolocation:resources/ in the head
-add geolocation:locateMe/ in the body
-add script on the gsp
<script>
var latlng = new google.maps.LatLng(${session.position.coords.latitude},${session.position.coords.longitude});
alert(latlng)
</script>
-test on Firefox 12.0 and chrome with agent for mobile
result: Error evaluating expression [session.position.coords.latitude] on line [11]: Cannot get property 'coords' on null object
Any advice?
Step (on grails 1.3.7):
<script> var latlng = new google.maps.LatLng(${session.position.coords.latitude},${session.position.coords.longitude}); alert(latlng) </script>-install the plugin
-add geolocation:resources/ in the head
-add geolocation:locateMe/ in the body
-add script on the gsp
-test on Firefox 12.0 and chrome with agent for mobile
result: Error evaluating expression [session.position.coords.latitude] on line [11]: Cannot get property 'coords' on null object
Any advice?