|
POST
|
Yea. We use G.Analytics, putting just the code that they sent us (like 5 lines of code) and then since one month they are providing us info that we didnt know about our arcgis website. The thing is, we wanted to know about how to get the user id to the people that is using our website and how frecuently they use it. For loggin in, out flex app use the IdentityManager.
... View more
09-24-2014
06:35 AM
|
0
|
1
|
927
|
|
POST
|
Hello everybody. My question is, is it possible to get how many users have logged in a arcgis Web APP through the arcgis server administrator software? Cuz in my company we want to know the user id to the people who is using it and how many times they do it, and also if its possible, the widgets that they use frecuently. Thanks
... View more
09-24-2014
06:14 AM
|
0
|
3
|
4118
|
|
POST
|
Yes. I looked it before. I was thinking on implements that widget on my Flex Application but the thing is i just wanted to edit the esri signature to add the signature of the project too. Thanks anyways for ur reply. I appreciate it too much
... View more
08-19-2014
02:16 PM
|
0
|
0
|
886
|
|
POST
|
Hello. Im wondering how to change this to put a copywrite in my project, also if its possible to put a image on that space. Thank yuo for all ur support!
... View more
08-19-2014
07:41 AM
|
0
|
3
|
2441
|
|
POST
|
Hello. Im wondering if theres any example of LayerListWidget for Flash builder Api. I wanna do a title Window that has inside the layers with the names and sublayers and permit to the user change the layer visibility. I have the example of the layerList widget but i get lost with the TOC and files... Its the same but i want a titlewindow.
... View more
08-13-2014
02:25 PM
|
0
|
0
|
3573
|
|
POST
|
Well, we are using a dynamic layer with all of the features included on it. For now, we noticed that if we are not too close for the street view of the map the features will load slow. So the thing is we change the zoom for the closest and it works a little bit faster than before. Our instances is just 1. Thanks for ur answer
... View more
08-11-2014
06:47 AM
|
0
|
0
|
1275
|
|
POST
|
Hello, My question is, how can i improve the performance on a map when i have too many features in a dynamic layer? I have a map service that have information over 13.000 diferent features, and I am trying to display then in a map (not widget). (The city has 4 different dynamic layers that shows different info but just some of them exceeds the 13k features) When we execute the app and load the layer, it takes time to put all the graphics in the screen, and when we try to make a zoom in, its also kinda slow. We have to see the entire city with the info in the beginning, so we made a zoom that shows the city completely. But when we do that the graphics loaded in the map take time to show up. If we put the extent too close inside the city, its ok (we change the layers to mode "ondemand"), but its not what we want. We also have a good server, so i dont think that its a server problem or computer problem. How can we improve the performance to see all the features in the map to not wait too long when they are loaded? or get stuck when we use the "mouse pan"? Thanks in advice.
... View more
08-08-2014
06:29 AM
|
0
|
2
|
2786
|
|
POST
|
Robert, Thank you so much for your help. I resolve the problem with the joins and now the widget works perfectly. I have another question about widgets and the map, but i will post it in another place. I give the answered question already. Regards.
... View more
07-31-2014
12:14 PM
|
0
|
1
|
1111
|
|
POST
|
Ok, i will try this and i will tell u how is going later. Thanks for ur patience Robert, i appreciate it too much. Regards
... View more
07-31-2014
10:45 AM
|
0
|
0
|
1111
|
|
POST
|
Ur example works perfectly, but the issue that we are having is this: In the arcgis srv, the layer we have the "nis" parameter as nested parameter in the BD like this "ARCGIS.dbo.CLIENTES_DATA_DATOS_006.nis" using points between each word. You use Local_ID because in ur arcgis srv u have the layer configured like a single word. When we try to use some nested parameters and we try to get any information from the service to put it in a datagrid we have the issue that it doesnt show anything because flex kinda get crazy with the "." between each word. So, in the example of the function that i showed u before, we "parse" the nested attributes to not have the issue with the datagrid. Then when i use the example that u showed me before it will not work because the nested parameters in our arcgis srv (something that really we cannot change) So, in this line on ur code : if (tGra.attributes["Local_ID"] == seleccionado){ Then when we put this: tGra.attributes["nis"] == seleccionado it doesnt compare anything, and also if we put the entire parameter how in our srv is: tGra.attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.nis"] == seleccionado also it doesnt compare. So, we dont really know how to compare the parameter when it is nested.
... View more
07-31-2014
07:05 AM
|
0
|
1
|
2304
|
|
POST
|
Robert, Im sorry, i tried to do the same what u said but it still doesnt do any zoom to the specified nis that i clicked on the grid. I dont know what is happening. I understand now what i have to do but it doesnt work idk why. If u have any example that seems that i want to do will be useful. Thx you
... View more
07-30-2014
11:39 AM
|
0
|
1
|
2304
|
|
POST
|
I did not understand . In the seconf function i wanna replace this part of the code
var q:QueryTask = new QueryTask();
q.showBusyCursor = true;
q.url = "http://gisred.chilquinta/arcgis/rest/services/Chilquinta_006/ClientesV2/MapServer/0";
q.useAMF = false;
var r:Query = new Query();
r.returnGeometry = true;
r.where = "ARCGIS.dbo.CLIENTES_DATA_DATOS_006.nis =" + seleccionado;
q.execute(r, new AsyncResponder(onResult, onFault));
function onResult(featureSet:FeatureSet, token:Object = null):void
{
try{
for each (var myGraphic:Graphic in featureSet.features)
{
myGraphic.symbol=new SimpleMarkerSymbol("diamond",10,0x00FF00)
var mp:MapPoint=featureSet.features[0].geometry as MapPoint;
graphicsLayer.add(myGraphic);
map.zoomTo(featureSet.features[0].geometry);
map.level = 16;
//Configuración ventana infoWindow con graphic
popUpRenderer.popUpInfo = popUpInfo;
popUpRenderer.graphic = myGraphic;
map.infoWindow.content = popUpRenderer;
map.infoWindow.contentOwner = popUpRenderer.graphic;
map.infoWindow.show(mp);
}
}catch(err:Error){
Alert.show("no se pudo hacer zoom al equipo seleccionado");
}
}
function onFault(info:Object, token:Object = null):void
{
Alert.show("nis no encontrado");
}
I wanna make a loop how u said , searching the result of the other featureSet that i have before with the "nis" parameter, because in this case that is unique. Its something like if featureset.nis = seleccionado draw the point where it is and zoom else do nothing or error msg But i dont know how to do it . Thanks in adv
... View more
07-30-2014
10:46 AM
|
0
|
3
|
2304
|
|
POST
|
Hello. Im doing a widget that has a grid with the result of a query that i did previously. My question is. When i click on the grid i can get one of the attributes in the grid with the "event.currentTarget.selectedItem.ATTRIBUTETOCHOOSE" and then i do another query asking the geometry of that attribute to make a zoom in the map when its selected. The thing is, i dont wanna make another query to get the featureSet of that attribute, because in the previous query i have them all. So how i can search just for the "selected" attribute in the previous featureSet that i used already? Thanks. My code is this one, and it works but i want to change it for not to do the second query. This is the code for the query to ask some routes on the arcgis srv and put the data in a grid:
public function searchRoute():void
{
var queryTaskRuta:QueryTask = new QueryTask();
queryTaskRuta.showBusyCursor = true;
queryTaskRuta.url = "XXXXXXXXXXX";
queryTaskRuta.useAMF = false;
var queryRutaSelected:Query = new Query();
queryRutaSelected.returnGeometry = true;
queryRutaSelected.outFields = ["*"];
//queryRutaSelected.where = "ARCGIS.dbo.CLIENTES_DATA_DATOS_006.nis IN (118936, 118934)";
queryRutaSelected.where = "ARCGIS.dbo.CLIENTES_DATA_DATOS_006.cd_sector =" + CboSector.selectedIndex + " and ARCGIS.dbo.CLIENTES_DATA_DATOS_006.cd_area= " + TxtArea.text
queryTaskRuta.execute(queryRutaSelected, new AsyncResponder(onResult, onFault));
function onResult(featureSet:FeatureSet, token:Object = null):void
{
if (featureSet.features.length == 0){
Alert.show("Ruta no encontrada","Busqueda de Rutas");
}
else{
try{
setBusyCursor();
for (var x:Number=0; x < featureSet.features.length; x++)
{
//agregar a variables y luego al objeto que se muestra en la tabla...
var nis:Number = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.nis"];
var nm_estado_suministro:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.nm_estado_suministro"];
var zona:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.zona"];
var nm_tarifa:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.nm_tarifa"];
var categoria:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.categoria"];
var oficina:String=featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.oficina"];
var empalme:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.empalme"];
var cd_area_tipica:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.cd_area_tipica"];
var cd_sector:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.cd_sector"];
var cd_area:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.cd_area"];
var consumidor:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.consumidor"];
var nm_tipo_suministro:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.nm_tipo_suministro"];
var resp_tipo_cliente:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.resp_tipo_cliente"];
var res_tipo_nodo:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.res_tipo_nodo"];
var resp_rotulo_nodo:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.resp_rotulo_nodo"];
var resp_id_nodo:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.resp_id_nodo"];
var resp_id_sed:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.resp_id_sed"];
var direccion_resu:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.direccion_resu"];
var id_dir_dmps:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.id_dir_dmps"];
var cliente_bt:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.cliente_bt"];
var cliente_mt:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.cliente_mt"];
var tipo_cliente:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.tipo_cliente"];
var estado_direccion:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.estado_direccion"];
var estado_poste:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.estado_poste"];
var estado_comuna:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.estado_comuna"];
var tipo_cnx:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.tipo_cnx"];
var estado_final:String = featureSet.features .attributes["ARCGIS.dbo.CLIENTES_DATA_DATOS_006.estado_final"];
featureSet.features .attributes["nis"] = nis;
featureSet.features .attributes["nm_estado_suministro"] = nm_estado_suministro;
featureSet.features .attributes["zona"] = zona;
featureSet.features .attributes["nm_tarifa"] = nm_tarifa;
featureSet.features .attributes["categoria"] = categoria;
featureSet.features .attributes["oficina"] = oficina;
featureSet.features .attributes["empalme"] = empalme;
featureSet.features .attributes["cd_area_tipica"] = cd_area_tipica;
featureSet.features .attributes["cd_sector"] = cd_sector;
featureSet.features .attributes["cd_area"] = cd_area;
featureSet.features .attributes["consumidor"] = consumidor;
featureSet.features .attributes["resp_tipo_cliente"] = resp_tipo_cliente;
featureSet.features .attributes["res_tipo_nodo"] = res_tipo_nodo;
featureSet.features .attributes["resp_rotulo_nodo"] = resp_rotulo_nodo;
featureSet.features .attributes["resp_id_nodo"] = resp_id_nodo;
featureSet.features .attributes["resp_id_sed"] = resp_id_sed;
featureSet.features .attributes["direccion_resu"] = direccion_resu;
featureSet.features .attributes["id_dir_dmps"] = id_dir_dmps;
featureSet.features .attributes["cliente_bt"] = cliente_bt;
featureSet.features .attributes["cliente_mt"] = cliente_mt;
featureSet.features .attributes["tipo_cliente"] = tipo_cliente;
featureSet.features .attributes["estado_direccion"] = estado_direccion;
featureSet.features .attributes["estado_poste"] = estado_poste;
featureSet.features .attributes["estado_comuna"] = estado_comuna;
featureSet.features .attributes["tipo_cnx"] = tipo_cnx;
featureSet.features .attributes["estado_final"] = estado_final;
coleccion.addItem(featureSet.features .attributes);
fset=featureSet;
var mp:MapPoint=featureSet.features .geometry as MapPoint;
var myGraphic:Graphic = new Graphic(new MapPoint(mp.x,mp.y, new SpatialReference (102100)));
myGraphic.symbol=new SimpleMarkerSymbol("circle",8,0xFF3300)
graphicsLayer.add(myGraphic);
map.zoomTo(featureSet.features .geometry);
map.level = 15;
map.addLayer(graphicsLayer);
}
}catch(err:Error){
Alert.show("Error al graficar","Route Search");
}
myViewStack.selectedIndex = 1;
removeBusyCursor();
}
}
function onFault(info:Object, token:Object = null):void
{
Alert.show("Ruta No existe","Route Search");
removeBusyCursor();
}
}
This is the code when the user click on the grid and extracts the "nis" attribute to search again in another query to get the geometry to zoom it on the map, also put the InfoWindow with some of the data of the clicked field on the grid. (i want to change this for using the featureSet that i have in the other query and search the clicked from there)
protected function gridTest_clickHandler(event:MouseEvent):void
{
var seleccionado:String = new String(event.currentTarget.selectedItem.nis);
//Configuración ventana infoWindow datos
var popUpInfo:PopUpInfo = new PopUpInfo;
popUpInfo.title = seleccionado;
popUpInfo.description = String(event.currentTarget.selectedItem.zona) + "<br>" + String(event.currentTarget.selectedItem.direccion_resu);
var q:QueryTask = new QueryTask();
q.showBusyCursor = true;
q.url = "xxxxxxxxxxxxx";
q.useAMF = false;
var r:Query = new Query();
r.returnGeometry = true;
r.where = "ARCGIS.dbo.CLIENTES_DATA_DATOS_006.nis =" + seleccionado;
q.execute(r, new AsyncResponder(onResult, onFault));
function onResult(featureSet:FeatureSet, token:Object = null):void
{
try{
for each (var myGraphic:Graphic in featureSet.features)
{
myGraphic.symbol=new SimpleMarkerSymbol("diamond",10,0x00FF00)
var mp:MapPoint=featureSet.features[0].geometry as MapPoint;
graphicsLayer.add(myGraphic);
map.zoomTo(featureSet.features[0].geometry);
map.level = 16;
//Configuración ventana infoWindow con graphic
popUpRenderer.popUpInfo = popUpInfo;
popUpRenderer.graphic = myGraphic;
map.infoWindow.content = popUpRenderer;
map.infoWindow.contentOwner = popUpRenderer.graphic;
map.infoWindow.show(mp);
}
}catch(err:Error){
Alert.show("no se pudo hacer zoom al equipo seleccionado");
}
}
function onFault(info:Object, token:Object = null):void
{
Alert.show("nis no encontrado");
}
}
... View more
07-30-2014
09:30 AM
|
0
|
13
|
6768
|
|
POST
|
how u did the query.where statement?, cuz the q.where statement works like query.where = "NOMBRE='MADRID'"; And also the layer url has to have the parameter that u are asking for.
... View more
07-09-2014
12:52 PM
|
0
|
0
|
573
|
|
POST
|
I solve the problem putting some event listeners on the main app. Thx anyways.
... View more
06-26-2014
08:19 AM
|
0
|
0
|
812
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-21-2017 02:09 PM | |
| 1 | 04-10-2015 07:52 AM | |
| 1 | 03-23-2016 02:08 PM | |
| 1 | 02-22-2016 05:01 AM | |
| 1 | 10-09-2018 07:10 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-01-2024
03:05 AM
|