actionscript 3 - Esri map with flex show name on navigator instead of coordinates -
i using com.esri.ags.components.directions on esri map , added stops coordinates. how can assign name stop showing on screen , when printing instead of coordinates?
this code added stops
var stop:directionsstop = mainuicomponent.mydirections.stopprovider[0]; stop.editable = false; stop.searchterm = usersession.getcurrentuserdto().dealercoordinatesdto.addresslongitude + "," + usersession.getcurrentuserdto().dealercoordinatesdto.addresslatitude; var stopcount:int=1; for( var i:int=0; < customerstovisitslist.length; i++) { var point:dealerquestmappoint=new dealerquestmappoint( customerstovisitslist[i].addresslongitude,customerstovisitslist[i].addresslatitude); point.pointtype="customer"; point.targetobject=customerstovisitslist[i]; point.address = customerstovisitslist[i].address; var imagetooltip:string//="test"; customerstovisitslist[i].customername.tostring() +"\n"+customerstovisitslist[i].address.tostring() +", "+customerstovisitslist[i].city.tostring() +"\n"+customerstovisitslist[i].state.tostring() +", "+customerstovisitslist[i].zip.tostring(); rendermappoint(mainuicomponent.customerslayer, point, customerstovisitslist[i].customer_id, imagetooltip, customerstovisitslist[i], mainuicomponent.bluesymbol); if(i==0) { var stop1:directionsstop = mainuicomponent.mydirections.stopprovider[1]; stop1.editable = true; stop1.searchterm = point.lon.tostring() + "," + point.lat.tostring(); stop1.name = customerstovisitslist[i].customername.tostring(); } else { stopcount+=1; var st:directionsstop = new directionsstop(); st.editable = true; st.searchterm = point.lon.tostring() + "," + point.lat.tostring(); st.name = customerstovisitslist[i].customername.tostring(); mainuicomponent.mydirections.stopprovider.additem(st); } } mainuicomponent.mydirections.getdirections();
i checked documentation , found nothing because deal address dealing coordinates makes must rename name.
screenshot of map coordinates written
Comments
Post a Comment