51OSDS\pfergusonS-1-5-21-529911294-2094910992-1879489539-22262016-09-26T12:26:34.437Google MapsOSDS\pfergusonS-1-5-21-529911294-2094910992-1879489539-22262016-09-30T14:37:28.433falsefalsefalse5151Main Processtruetruefalse511false{"__type":"startEvent","name":"Message Start Event","id":1,"milestoneId":1,"relMsOffsetX":1,"relMsOffsetY":3,"swimmingLaneId":1,"eventDefinitions":[{"__type":"messageEventDefinition"}],"eventSubType":"message","signalCatch":0,"confOpt":"text","emailSaveAsDraft":{"body":"Your form has been saved.","subject":"Your form has been saved."},"msgContent":"<div style='text-align: center;'><div style='margin: 25px auto'><h1 style='font-size: 150%; margin-bottom: 30px;'>Thank you!<\/h1><div>Your form has been submitted.<\/div><\/div><\/div>","submitText":"Submit","urlContent":"","allowEmailSubmission":true,"allowDownloadSubmission":true,"showFormSubmission":true}startEventMessage Start Eventfalsefalse{"x":160,"y":300}108message001113512false{"__type":"endEvent","name":"End Event","id":2,"milestoneId":2,"relMsOffsetX":3,"relMsOffsetY":3,"swimmingLaneId":1,"eventDefinitions":[{"__type":"noneEventDefinition"}],"eventSubType":"none","signalThrow":null}endEventEnd Eventfalsefalse{"x":480,"y":300}0none002133
108TestForm titleOSDS\pfergusonS-1-5-21-529911294-2094910992-1879489539-22262016-09-28T14:39:00.747OSDS\pfergusonS-1-5-21-529911294-2094910992-1879489539-22262016-09-30T14:36:25.017false80020left#q2{ text-align: center }$(document).ready(function () { if($("#Field4_DSG0").is("input")) { } else { var getLatLng = $('#q3').text(); if(getLatLng.length > 0) { var q = getLatLng.replace("LatLong",""); drawMap(q); } } $('#q3').hide(); $.cachedScript = function( url, options ) { options = $.extend( options || {}, { dataType: "script", cache: true, url: url }); return $.ajax( options ); }; function drawMap(n) { var position = n.split('|'); var lt = position[0].replace("LatLong",""); var latitude = lt; var longitude = position[1]; //document.getElementById("latlong-p").innerHTML = "Location found!<br />Latitude: " + latitude + "<br />Longitude: " + longitude; var google_tile = "https://maps.googleapis.com/maps/api/staticmap?center=" + latitude + "," + longitude + "&zoom=17&size=700x400&markers=color:red|" + latitude + "," + longitude; var canvas = document.getElementById("map-canvas"); var context = canvas.getContext("2d"); var img = new Image(); img.src = google_tile; img.onload = function(){ context.drawImage(img, 0, 0); } } var gUrl = "https://maps.googleapis.com/maps/api/js?libraries=places"; var gcUrl = "https://ubilabs.github.io/geocomplete/jquery.geocomplete.js"; $.cachedScript(gUrl).done( function(){ $.cachedScript(gcUrl).done( function( script, textStatus ) { //#Field4_DSG0 is the ID for the Street Address input on the Address widget $("#Field4_DSG0").geocomplete ({ details: "form", detailsAttribute: "class" }).bind( "geocode:result", function(event, result){ //https://developers.google.com/maps/documentation/geocoding/intro?csw=1#Types var ac = result.address_components; var lat = result.geometry.location.lat(); var lng = result.geometry.location.lng(); var c = {}; $.each(ac, function(k,v1) {$.each(v1.types, function(k2, v2){c[v2]=v1.short_name});}) var lo = c.locality; if(lo === undefined) lo = c.postal_town; //#Field4_DSG2 is the ID for the City input on the Address widget $("#Field4_DSG2").val(lo); var aal = c.administrative_area_level_1; if(aal === undefined) aal = c.administrative_area_level_2; //#Field4_DSG3 is the ID for the State / Province / Region input on the Address widget $("#Field4_DSG3").val(aal); var pc = c.postal_code; if(c.postal_code_suffix != undefined) pc += "-" + c.postal_code_suffix; //#Field4_DSG4 is the ID for the Postal / Zip Code input on the Address widget $("#Field4_DSG4").val(pc); //#Field4_DSG5 is the ID for the Country input on the Address widget $("#Field4_DSG5").val(c.country); //Reformat Street Address to only have the address in it var addr = $("#Field4_DSG0").val().split(","); $("#Field4_DSG0").val(addr[0]); var position = lat + "|" + lng; $('#q3 input').val(position); $('#q5 input').val(lat); $('#q6 input').val(lng); drawMap(position); //console.log(result); }); }); }); });falsetruetrue10840addressfalsefalsefalsefalsefalsefalsefalsefalse3629falsefalse35273527Address_2addressfalsefalse10821customfalsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalse10832textfalsefalsefalse50[]falsefalsefalsefalsefalse3625falsefalse35233523Single_Line_1textfalsefalse10853textfalsefalsefalse50[]falsefalsefalsefalsefalse3636falsefalse35283528Latitude_1textfalsefalse10864textfalsefalsefalse50[]falsefalsefalsefalsefalse3637falsefalse35293529Longtitudetextfalsefalsetruefalsefalse
5112false{"cpHead":3,"x":0,"y":0}{"viewport":[-80,0],"scale":1,"canvas":[0,1511,1059,80]}3851Profilechronos.osds.comOSDSOfficefalsefalse{/dataset/_bp_process_name} {/dataset/_instance_id}: {/dataset/_initiator_displayname}Eastern Standard Time3468AddressComplexAddress364AddressSystem03558address3475Single_LineTextSingle_Line0System3565text3476LatitudeTextLatitude0System3566text3477LongitudeTextLongitude0System3567text3478Address_1ComplexAddress364AddressSystem03568address3523Single_Line_1TextSingle_Line0System3625text3527Address_2ComplexAddress364AddressSystem03629address3528Latitude_1TextLatitude0System3636text3529LongtitudeTextLongtitude0System3637text151falseDefault Stage#ffffff1251falseStage 2#ffffff3151falseDefault Swimming Lane#ffffff3
4falsefalse0falseNone