Jump to content

birog

uniGUI Subscriber
  • Posts

    6
  • Joined

  • Last visited

Posts posted by birog

  1. Hi, Fenix

    the sfcomp version I have (dated 24/08/2017) does not work correctly with unigui 1.10.xxxxx and extjs 6.5

    The new version supports uniGUI 1.10.0.1458 and extjs 6.5?

    If so, please send me a private message where you indicate the upgrade price and payment methods.
    thank you

  2. Hi Lema,
     
    after installing version 1.4.8 (with unigui Pro uni-1.0.0.1403), the route function displays an error and does not work.
    The error also comes with uniGMap Demo (I've compiled on my PC)
    If I open the DIRECTIONS example and click on GO, the application shows a script error with the "Unexpected string" message and the following text:
     
    MarkerClusterer_OE4.clearMarkers();for ( var i=0; i<markersArray_OE4.length; i++ ) {google.maps.event.clearInstanceListeners(markersArray_OE4);markersArray_OE4.setMap(null); } markersArray_OE4.length = 0;if (typeof directionsDisplay != "undefined") {  directionsDisplay.setMap(null);};var rendererOptions = {draggable: true};directionsDisplay = new google.maps.DirectionsRenderer(rendererOptions);var directionsService = new google.maps.DirectionsService();  var request = {   origin                   : "Brussel",   destination              : "Maastricht",   travelMode               : google.maps.DirectionsTravelMode.DRIVING,   unitSystem               : google.maps.UnitSystem.METRIC,   waypoints                : [],   avoidHighways            : false,   provideRouteAlternatives : false,   avoidTolls               : false};  directionsService.route(request, function(response, status){  if ( status == google.maps.DirectionsStatus.OK ) {    directionsDisplay.setDirections(response);    directionsDisplay.setMap(gm_OE4);  } else {alert(status);}});  google.maps.event.addListener(directionsDisplay, "directions_changed", function() {  var steps = [];  var wp    = [];  var my    = directionsDisplay.getDirections();   var data  = {};  data.copyrights     = my.routes[0].copyrights;  data.distancetext   = my.routes[0].legs[0].distance.text;  data.distancevalue  = my.routes[0].legs[0].distance.value;  data.durationtext   = my.routes[0].legs[0].duration.text;  data.durationvalue  = my.routes[0].legs[0].duration.value;  data.startaddress   = my.routes[0].legs[0].start_address;  data.endaddress     = my.routes[0].legs[0].end_address;  data.startlocation  = {"lat": my.routes[0].legs[0].start_location.lat(),"lng":my.routes[0].legs[0].start_location.lng()};  data.endlocation    = {"lat": my.routes[0].legs[0].end_location.lat(),"lng":my.routes[0].legs[0].end_location.lng()};  for ( var i=0; i < my.routes[0].legs[0].steps.length; i++) {    steps.push({      "enc_lat_lngs"   : my.routes[0].legs[0].steps.encoded_lat_lngs,      "instructions"   : my.routes[0].legs[0].steps.instructions,      "distancetext"   : my.routes[0].legs[0].steps.distance.text,      "distancevalue"  : my.routes[0].legs[0].steps.distance.value,      "durationtext"   : my.routes[0].legs[0].steps.duration.text,      "durationvalue"  : my.routes[0].legs[0].steps.duration.value,      "startlocation"  : {"lat": my.routes[0].legs[0].steps.start_location.lat(),"lng": my.routes[0].legs[0].steps.start_location.lng()},      "endlocation"    : {"lat": my.routes[0].legs[0].steps.end_location.lat(),"lng": my.routes[0].legs[0].steps.end_location.lng()}    });  }  data.steps = steps;  for ( var i=0; i < my.routes[0].legs[0].via_waypoints.length; i++) {      wp.push({"location" : my.routes[0].legs[0].via_waypoints.lat() + "," + my.routes[0].legs[0].via_waypoints.lng() });  }  data.waypoints = wp;  ajaxRequest(OE4, "directions_changed",     ["count=" + my.routes[0].legs[0].steps.length ,     "directionsDisplay=" + JSON.stringify(data)     "directionsRoutes=" + JSON.stringify(directionsDisplay.getDirections(), null, "\t")     ]); });
     
     
    If I reinstall the version 1.4.6 everything will return to work perfectly.
     
    Where am I wrong?
     
    Thank you

     

×
×
  • Create New...