1 2const options = { 3 enableHighAccuracy: true, 4 timeout: 5000, 5 maximumAge: 0, 6}; 7 8Snappy.GetGeo = function (dotNetHelper) { 9 if(dotNetHelper == null) 10 return 11 navigator.geolocation.getCurrentPosition(position => { 12 dotNetHelper.invokeMethodAsync('SetGeo', position.coords.longitude , position.coords.latitude); 13 14 if(!Snappy.map) 15 return 16 17 new maptilersdk.Marker({ 18 element: document.getElementById("currentLoc") 19 }) 20 .setOffset([20,7]) 21 .setLngLat([position.coords.longitude,position.coords.latitude]) 22 .addTo(Snappy.map); 23 24 Snappy.map.panTo([position.coords.longitude, position.coords.latitude]) 25 }, error, options); 26}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.