|
POST
|
Yea i downloaded the api and how i use IIS u just do what the tutorial says for windows. I change in the init js and dojo js the path miserver/theapi and it doesnt work to me.
... View more
01-05-2016
04:18 AM
|
0
|
5
|
3753
|
|
POST
|
Maybe u can use some of this... var strWindowFeatures = "location=yes,height=570,width=520,scrollbars=yes,status=yes"; var URL = "https://www.linkedin.com/cws/share?mini=true&url=" + location.href; var win = window.open(URL, "_blank", strWindowFeatures);
... View more
01-04-2016
04:24 AM
|
2
|
0
|
2017
|
|
POST
|
Actually i know about it, thats why theres not an example about querying a featurelayer. It needs more docs of a lot of things. Anyways, i resolved my problem in another way, i will post it tomorrow, but idk if its the best practice to do it. Enviado desde Correo de Windows De: Bjorn Svensson Enviado el: martes, 29 de diciembre de 2015 20:49 Para: Evelyn Elena Hernández Riquelme GeoNet Querying a FeatureLayer with Angular JS reply from Bjorn Svensson in ArcGIS API for JavaScript - View the full discussion Evelyn Hernandez - take a look at http://esri.github.io/angular-esri-map/. Reply to this message by replying to this email, or go to the message on GeoNet Start a new discussion in ArcGIS API for JavaScript by email or at GeoNet Following Querying a FeatureLayer with Angular JS in these streams: Inbox This email was sent by GeoNet because you are a registered user. You may unsubscribe instantly from GeoNet, or adjust email frequency in your email preferences
... View more
12-29-2015
06:04 PM
|
0
|
0
|
1519
|
|
POST
|
How can i integrate angularjs with arcgis api?... Its very simple what i want to do but idk how to put things together 😞
... View more
12-29-2015
05:25 AM
|
0
|
2
|
1519
|
|
POST
|
Hey there. Im starting to develop a little app that it has to search a value in a feature layer and give the result in some html List and also make a zoom in a map with the current location (i would like to add the infotemplate from the feature). Im programming with esri-angular api, but i dont find any example of : 1.- How to query data from a featurelayer 2.- How to make a zoom to the founded feature. 3.- Is there a way to not use this to add the feature layers and doing it through code? <esri-feature-layer url="http://services.arcgis.com/rOo16HdIMeOBI4Mb/arcgis/rest/services/Heritage_Trees_Portland/FeatureServer/0"></esri-feature-layer> <esri-feature-layer url="http://services.arcgis.com/rOo16HdIMeOBI4Mb/arcgis/rest/services/Portland_Parks/FeatureServer/0"></esri-feature-layer> Thanks in advice for ur help guys as always I just have this on my code: Mapa.JS angular.module('myApp', ['esri.map'])
.controller('MapController', function ($scope) {
$scope.map = {
center: {
lng: -71.51079005370974,
lat: -33.0324567956618},
zoom: 10
};
}); Html File: <div class="content-block contact-3 bg-clouds" id="busqueda" ng-controller="MapController">
<div class="container">
<div class="row">
<div class="underlined-title">
<h1>Buscar NIS de Cliente</h1>
<hr>
</div>
<div class="row">
<form role="form">
<div class="col-md-4">
<div class="form-group">
<label class="control-label" for="formInput13">Ingrese el NIS del cliente a buscar:</label>
<input type="text" class="form-control" id="formInput13" placeholder="NIS" required>
</div>
</div>
<div class="col-md-4">
<button type="button" class="btn btn-default btnBuscar bg-moonlight offwhite" id="searchBtn">
<i class="fa fa-search"></i> Buscar
</button>
</div>
</form>
</div>
<div class="col-md-6">
<div id="contact" class="form-container">
<h2>Resultados de la búsqueda:</h2>
<fieldset>
<ul>
<li>Lat: {{map.center.lat}}</li>
<li>Address: {{map.layer.address}}</li>
<li>Pipe: {{map.layer.pipe}}</li>
<li>Status: {{map.layer.status}}</li>
<li>Nulla volutpat aliquam velit
<ul>
<li>Phasellus iaculis neque</li>
<li>Purus sodales ultricies</li>
</ul>
</li>
</ul>
</fieldset>
<p>
Lat:<input type="number" step="0.1" ng-model="map.center.lat" />
Lng:<input type="number" step="0.1" ng-model="map.center.lng" />,
Zoom: <select ng-model="map.zoom" ng-options="level for level in [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]"></select>
</p>
</div>
<!-- /.form-container -->
</div>
<div class="col-md-6">
<h2>Ubicación</h2>
<p>Lugar donde actualmente se encuentra el NIS.</p>
<div class="row pg-empty-placeholder containerMap"><esri-map id="map" center="map.center" zoom="map.zoom" basemap="topo"></esri-map>
</div></div>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container -->
</div>
... View more
12-28-2015
11:24 AM
|
0
|
3
|
4542
|
|
POST
|
Idk if u can, but its an idea. Why u dont put a .gif image per each graphic on the map for the query result?, setting the source of the marker symbol. Will be interesting if u share the code when u solve ur problem
... View more
12-15-2015
01:29 PM
|
0
|
0
|
1675
|
|
POST
|
Hello, Some days ago the edit widget cannot add a new feature. The widget opens the infowindow to put the parameters to add the new feature, but when i press the button to add it, it shows the "Adding Feature" label with the symbol of "loading something" and it keeps in the same way all the time. If i check the DB the feature is not added, so... What can be the problem? I already checked the information about the featurelayer if it allows to add new features, edit and remove them. It only happen when i try to add a new one (it can remove them) Hoping to solve my problem, Thanks in advice
... View more
10-28-2015
12:39 PM
|
0
|
0
|
2653
|
|
POST
|
I found this post, it can help u: Map Highlight Color
... View more
10-20-2015
05:35 AM
|
1
|
1
|
1896
|
|
POST
|
Well idk the exact file, but u can change the color in a graphic object, or eventually, for example, u do a query and when u get the featureset of the search u usually make a mappoint and a graphic object to display the search on the map. When u make the object, u specify the x,y of the mappoint and in the graphic the followings properties (kind of graphic: ppoint, polyline, polygon; the color; the alpha; etc). So try to see if u find something like that in ur code. I hope this reference will be useful for you
... View more
10-20-2015
05:29 AM
|
0
|
2
|
1896
|
|
POST
|
Why u dont try to save the last extent in a bd field and then when the user log in u get the extent that he had?
... View more
10-19-2015
12:40 PM
|
1
|
5
|
2817
|
|
POST
|
You can make a widget group and when u try to open one of the menu items( infraestructure, nat resources or generals ) display the layers on the way that u showed in the example.
... View more
10-05-2015
05:41 AM
|
1
|
0
|
809
|
|
POST
|
Im having an issue due to async functions on my widget My code: <viewer:BaseWidget xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:viewer="com.esri.viewer.*"
xmlns:components="com.esri.viewer.components.*"
xmlns:esri="http://www.esri.com/2008/ags" initialize="basewidget1_initializeHandler(event)" creationComplete="basewidget1_creationCompleteHandler(event)"
>
<fx:Declarations>
<s:GlowFilter id="glowFilter"
alpha="1"
color="{getStyle('focusColor')}"
inner="true"
strength="2"/>
<s:DateTimeFormatter id="dateFormatter" dateTimePattern="dd/MM/yyyy"/>
</fx:Declarations>
<fx:Script>
<![CDATA[
import com.esri.ags.FeatureSet;
import com.esri.ags.Graphic;
import com.esri.ags.tasks.QueryTask;
import com.esri.ags.tasks.supportClasses.Query;
import flash.utils.setTimeout;
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.events.FlexEvent;
import mx.rpc.AsyncResponder;
import mx.rpc.Responder;
import widgets.AdmIngresoClientes.utilidad.urls;
[Bindable] public var idPosteNuevo:String;
[Bindable] public var idDirNueva:String;
[Bindable] public var rotNuevo:String;
[Bindable] public var dirNueva:String;
[Bindable] public var coleccionClientes:ArrayCollection = new ArrayCollection;
[Bindable] public var fs:FeatureSet = new FeatureSet;
[Bindable] public var rotu:int;
protected function basewidget1_initializeHandler(event:FlexEvent):void
{
// TODO Auto-generated method stub
coleccionClientes.removeAll();
// TODO Auto-generated method stub
var queryTask:QueryTask = new QueryTask(widgets.AdmIngresoClientes.utilidad.urls.URL_ADD_CLIENTE);
var query:Query = new Query();
query.where = "1=1";
query.outFields = ['*'];
query.orderByFields = ['created_date'];
query.returnGeometry = true;
queryTask.execute(query, new AsyncResponder(onResultQuery, onFaultQuery));
function onResultQuery(featureSet:FeatureSet, token:Object = null):void
{
var k:int;
for(k=0;k<featureSet.features.length;k++)
{
if ( (featureSet.features .attributes["TIPO_POSTE_CAMARA"] == "nuevo") && (featureSet.features .attributes["TIPO_DIRECCION"] == "nueva") ){
idPosteNuevo = "calcular ID Poste";
rotNuevo = "calcular rotulo";
idDirNueva = "calcular ID Dir";
dirNueva = "calcular direccion nombre";
}
if ( (featureSet.features .attributes["TIPO_POSTE_CAMARA"] == "nuevo") && (featureSet.features .attributes["TIPO_DIRECCION"] == "existente") ) {
idPosteNuevo = "calcular ID Poste";
rotNuevo = "calcular rotulo";
idDirNueva = featureSet.features .attributes["ID_DIRECCION"];
dirNueva = "calcular direccion nombre";
}
if ( (featureSet.features .attributes["TIPO_POSTE_CAMARA"] == "existente") && (featureSet.features .attributes["TIPO_DIRECCION"] == "nueva") ) {
idPosteNuevo = featureSet.features .attributes["ID_POSTE_CAMARA"];
rotNuevo = "calcular rotulo";
idDirNueva = "calcular ID Dir";
dirNueva = "calcular direccion nombre";
}
if ( (featureSet.features .attributes["TIPO_POSTE_CAMARA"] == "existente") && (featureSet.features .attributes["TIPO_DIRECCION"] == "existente") ) {
rotNuevo = buscarRotulo(featureSet.features .attributes["ID_POSTE_CAMARA"]);
idDirNueva = featureSet.features .attributes["ID_DIRECCION"];
}
var recordGraphic:Graphic = featureSet.features ;
coleccionClientes.addItem({OBJECTID:recordGraphic.attributes["OBJECTID"],
NIS:recordGraphic.attributes["NIS"],
NUMERO_MEDIDOR:recordGraphic.attributes["NUMERO_MEDIDOR"],
TIPO_POSTE_CAMARA:recordGraphic.attributes["TIPO_POSTE_CAMARA"],
ID_POSTE_CAMARA:String(idPosteNuevo),
TIPO_DIRECCION:recordGraphic.attributes["TIPO_DIRECCION"],
ID_DIRECCION:String(idDirNueva),
ROTULO:String(rotNuevo),
gra:recordGraphic});
}
}
function onFaultQuery(info:Object, token:Object = null):void
{
Alert.show("Error en consulta","Carga de Clientes");
}
}
public function buscarRotulo(idp:String):String{
var rt:String;
var queryTask:QueryTask = new QueryTask(widgets.AdmIngresoClientes.utilidad.urls.URL_ROTULOS);
var query:Query = new Query();
query.where = "id_nodo="+ idp;
query.outFields = ['rotulo'];
query.returnGeometry = false;
queryTask.execute(query, new AsyncResponder(onResultQuery2, onFaultQuery2));
function onResultQuery2(featureSet2:FeatureSet, token:Object = null):void {
//var recordGraphic:Graphic = featureSet2.features[index];
rt = String(featureSet2.features[0].attributes["rotulo"]);
// Alert.show(rotNuevo);
}
function onFaultQuery2(info:Object, token:Object = null):void
{
}
return rt;
}
protected function basewidget1_creationCompleteHandler(event:FlexEvent):void
{
// TODO Auto-generated method stub
DataClientesNuevos.dataProvider = coleccionClientes;
}
]]>
</fx:Script>
<viewer:WidgetTemplate id="wTemplate"
width="800" height="500"
visible="true">
<mx:Canvas id="ListadoClientes" label="Lista Clientes Nuevos" width="100%" height="100%">
<s:VGroup width="100%" top="5" bottom="5" height="100%">
<mx:Label id="Lblclie" text="Listado de Nuevos Clientes" fontSize="18"/>
<mx:DataGrid id="DataClientesNuevos" resizableColumns="true" sortableColumns="true" editable="false"
width="100%" height="100%" visible="true" selectable="true">
<mx:columns>
<mx:DataGridColumn dataField="OBJECTID" headerText="OBJECTID" width="30" visible="false"/>
<mx:DataGridColumn dataField="NUMERO_MEDIDOR" headerText="NUMERO MEDIDOR" width="50" />
<mx:DataGridColumn dataField="NIS" headerText="NIS" width="50"/>
<mx:DataGridColumn dataField="TIPO_POSTE_CAMARA" headerText="TIPO_POSTE_CAMARA" visible="true" width="50" />
<mx:DataGridColumn dataField="ID_POSTE_CAMARA" headerText="ID_POSTE_CAMARA" visible="true" width="50" />
<mx:DataGridColumn dataField="ROTULO" headerText="ROTULO" visible="true" width="50" />
<mx:DataGridColumn dataField="TIPO_DIRECCION" headerText="TIPO_DIRECCION" visible="true" width="50" />
<mx:DataGridColumn dataField="ID_DIRECCION" headerText="ID_DIRECCION" visible="true" width="50" />
<mx:DataGridColumn dataField="DIRECCION_PROPIETARIO" headerText="DIRECCION PROPIETARIO" visible="true" width="50" />
<mx:DataGridColumn dataField="CALLE" headerText="CALLE" visible="true" width="50" />
<mx:DataGridColumn dataField="NUMERO" headerText="NUMERO" visible="true" width="50" />
</mx:columns>
</mx:DataGrid>
</s:VGroup>
</mx:Canvas>
</viewer:WidgetTemplate>
</viewer:BaseWidget> The logic is: the main query that u get the "numero medidor, nis, tipo tipo_direccion is from a layer) The "rotulo" is a query from another layer in the service, the result has to be in the coleccionClientes arrayList, where i ask for the id_poste and it gives me the result for the rotulo. I have to do the same with the direccion , calle , and numero. Since im starting to get the rotulo, my problem is i get null for the 2 rows that it has to be shown. The result is this one in the attach. How can i do this more efficiently? Cuz the async functions from the other layer im asking has a delay between each row. thanks in advice! Soon i will start changing this to javascript T -T, i promise.
... View more
08-31-2015
11:54 AM
|
0
|
0
|
2796
|
|
POST
|
Hello, Are u trying to add features using multiparameters? Maybe if u can show some code i can help u.
... View more
07-29-2015
01:43 PM
|
0
|
1
|
662
|
| 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
|