anchor.diff:          <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
           <script>
               $(function () {
  -                $.datepickermap.setDefaults({
  +                $.datepicker.setDefaults({
                       minDate: new Date(2015, 7, 24),
                       maxDate: "+1d",
                       changeYear: true,
                       altFormat: "yy-mm-dd",
                       dateFormat: "yy-mm-dd"
                   });
  -                $("#startdatepickermap").datepickermap({
  +                $("#startdatepicker").datepicker({
                       defaultDate: new Date(2015, 7, 24)
                   });
  -                $("#enddatepickermap").datepickermap();
  +                $("#enddatepicker").datepicker();
               });
           </script>
       
  
positive.code:     
      
      <script>
          document.getElementById('datecheckmap').onchange = function() {
          document.getElementById('enddatepickermap').disabled = !this.checked;
          document.getElementById('startdatepickermap').disabled = !this.checked;
          document.getElementById('enddatepickermap').value = "";
          document.getElementById('startdatepickermap').value = "";
          $("#enabledatemap").toggle("fast");
          };  
      </script>
      
  
negative.code:         for (var i=0; i< userJourneyPoints.length; i++) {
              
              var lat = coords[coordsToUse[i]][0];
              
              //var otherlat = lat.toFixed(5);
              //parseFloat(lat);
              
              var lng = coords[coordsToUse[i]][1];
              
              //var otherlng = lng.toFixed(5);
              //parseFloat(lng);
              
              if (lat===0){    
              }
              else{
                  lat = parseFloat(lat);
                  lng = parseFloat(lng);
              var latLng = new google.maps.LatLng(lat, lng);
              pointdata.push(latLng);
                  
  