"I can do anything."
Photos © P.Cramer USU, UDWR, UDOT
(Xyphoid Fat Measurement)
Nail down a project name before you begin!
var timerid = navigator.geolocation.watchPosition(function(pos){
that.processPosition(pos);
}, function(er) {
...
navigator.geolocation.clearWatch(timerid);
navigator.geolocation.watchPosition(function(pos){
that.processPosition(pos);
}, function(er){...},
{timeout: 10000, enableHighAccuracy: false});
}, {
enableHighAccuracy: true
});
Use watchPosition() instead of getCurrentPosition() for higher accuracy.
<html manifest="roadkill.appcache">
Increment version number in manifest file.
Don't bother with it during active development.
CACHE MANIFEST
# Version: 77
CACHE:
css/core.css
css/images/ajax-loader.png
css/images/icons-18-white.png
css/images/icons-18-black.png
css/images/icons-36-white.png
css/images/icons-36-black.png
css/jquery.mobile-1.0.min.css
images/icon.png
images/splash.png
dojo.js
roadkill_en-us.js
roadkill.js
index.html
NETWORK:
*
Be careful with css collisions with ESRI's JavaScript API.
input, textarea {
-webkit-transform-style: preserve-3d;
}
.btn {
-webkit-transform-style: preserve-3d;
}
import arcpy
'''
GP Parameters
0 - route
1 - fromMP
2 - toMP
3 - outSegment - FeatureSet
'''
arcpy.env.overwriteoutput = True
# variables
route = arcpy.GetParameterAsText(0)
fromMP = float(arcpy.GetParameterAsText(1))
toMP = float(arcpy.GetParameterAsText(2))
"You'll be famous!" - @MattAGRC
Scott Davis, Utah AGRC