|
POST
|
Well one of my coworkers is working on an app we made 2 years ago (mobile ver of a web app) and its still working fine. He have developed the app with pure JAVA in android and the api for mobile. We havent migrated to react native...
... View more
12-11-2017
12:58 PM
|
0
|
1
|
3216
|
|
POST
|
I dont use dojo config, i integrate the lib using webpack. externals: [
function(context, request, callback) {
if (/^dojo/.test(request) ||
/^dojox/.test(request) ||
/^dijit/.test(request) ||
/^esri/.test(request)
) {
return callback(null, "amd " + request);
}
callback();
}
],
... View more
10-19-2017
01:56 PM
|
0
|
0
|
1365
|
|
POST
|
I wanted to know if there is a way to use require with a js generated by webpack using the html-webpack-plugin in hash mode. Right now i require my file like: <script type="text/javascript">require(["js/app.js"], function (app) {});</script> But the html generated by webpack plugin is giving me this: <script type="text/javascript" src="/app.js?add154b89f3e48308da7"></script></body> So, how i do it if my file has a hash integrated? I tried already this: <script type="text/javascript">require(["js/app.js?add154b89f3e48308da7"], function (app) {});</script> But it didnt work. Thanks for the help.
... View more
10-17-2017
08:05 AM
|
0
|
4
|
1864
|
|
POST
|
I already saw that and idk what im doing wrong now. What should i put in the featureCollection? the same layer that i made? Actually the example (the only one) that shows the api is for AOL and im not using that, so i have to create the layers by myself. Can u clarify me what i need to do ? var gpsNew = new ArcGISDynamicMapServiceLayer(myLayers.read_gps_new(), {id:"gis_gps_new"});
var layers = [
{
layer: gpsNew, // required unless featureCollection.
featureCollection: gpsNew,
showSubLayers: true, // optional, show sublayers for this layer. Defaults to the widget's 'showSubLayers' property.
showLegend: true, // optional, display a legend for the layer items.
content: "layerlist", // optional, custom node to insert content. It appears below the title.
showOpacitySlider: true, // optional, display the opacity slider for layer items.
// optional, custom button node that will appear within the layer title.
visibility: true, // optionally set the default visibility
id: "GPS" // optionally set the layer's id
}
];
var layerList = new LayerList({
map: mapp,
showLegend: true,
showSubLayers: true,
showOpacitySlider: true,
layers:layers
},"layerlist");
... View more
10-11-2017
11:24 AM
|
0
|
4
|
3256
|
|
POST
|
Hello there. Im a little bit confused on how is the way to add layers into a LayerList obj. Im using Arcgis Api 3.17. My code is the following: var mapp = mymap.createMap("map","topo",-71.5215, -32.9934,9);
var interrClienteSED = new ArcGISDynamicMapServiceLayer(layers.read_dyn_layerClieSED(),{id:"po_interrupciones"});
interrClienteSED.setInfoTemplates({
3: {infoTemplate: myinfotemplate.getNisInfo()},
1: {infoTemplate: myinfotemplate.getIsolatedNisFailure()},
0: {infoTemplate: myinfotemplate.getSubFailure()}
});
interrClienteSED.refreshInterval = 1;
interrClienteSED.setImageFormat("png32");
interrClienteSED.show();
var chqmapabase = new ArcGISDynamicMapServiceLayer(layers.read_mapabase(),{id:"gis_chqmapabase"});
chqmapabase.hide();
var heatmapFeatureLayerOptions = {
id: "gis_heatmapsed",
mode: FeatureLayer.MODE_SNAPSHOT,
outFields: ["*"]
};
var heatmapFeatureLayerOptions2 = {
id: "gis_heatmapclientes",
mode: FeatureLayer.MODE_SNAPSHOT,
outFields: ["*"]
};
var heatmapFeatureLayer = new FeatureLayer(layers.read_heatmapSED(), heatmapFeatureLayerOptions);
var heatmapFeatureLayer1 = new FeatureLayer(layers.read_heatmapClientes(), heatmapFeatureLayerOptions2);
var heatmapRenderer = new HeatmapRenderer({
colors: ["rgba(0,255,0, 0)","rgb(255, 255, 0)","rgb(255, 0, 0)"],
blurRadius: 16,
maxPixelIntensity: 250,
minPixelIntensity: 5
});
heatmapFeatureLayer.setRenderer(heatmapRenderer);
heatmapFeatureLayer.hide();
heatmapFeatureLayer1.setRenderer(heatmapRenderer);
heatmapFeatureLayer1.hide();
var gpsCars = new ArcGISDynamicMapServiceLayer(layers.read_GPS(), {id:"gis_gps"});
gpsCars.setInfoTemplates({
0: {infoTemplate: myinfotemplate.getCarsInfo()}
});
gpsCars.refreshInterval = 0.1;
gpsCars.setImageFormat("png32");
gpsCars.show();
var gpsNew = new ArcGISDynamicMapServiceLayer(layers.read_gps_new(), {id:"gis_gps_new"});
mapp.addLayers([chqmapabase,interrClienteSED, heatmapFeatureLayer, heatmapFeatureLayer1, gpsCars]);
var layerList = new LayerList({
map: mapp,
showLegend: true,
showSubLayers: true,
showOpacitySlider: true,
layers: [interrClienteSED, gpsCars]
},"layerlist");
layerList.startup(); Then i have only this in my html: <div className="map_container">
<div id="layerlist"></div>
<div id="map"></div>
<Simbology />
</div> The result i have is this one: I was trying with the layers that i already have added in the map, but actually i want to use another service where i have sublayers according this structure: Layers : One (0) • One - 1 (1) Two (3) • Two - 2 (4) I want to see in the layerlist all of them, see the legend and turn on/off each one. Thanks in advice!.
... View more
10-11-2017
10:55 AM
|
0
|
6
|
4885
|
|
POST
|
Hello everyone, Is there a way how to load in a map a geoserver wms layer? I have after the getMap parameter the following: "layers=sensor:sensores&styles=&bbox=-7981032.1474,-3914827.073,-7972998.7693,-3900987.9552&width=445&height=768&srs=EPSG:3857&format=application/openlayers" I have been looking on the arcgis js api and i know there is a WMSLayer feature to load this kind of maps, but im not sure how to load those parameters in a option var correctly. I tried to put my wms service (which is from geoserver) in the example provided for the arcgis api website but no results. I hope u guys can help me. Thanks in advice!.
... View more
10-04-2017
11:04 AM
|
0
|
0
|
836
|
|
POST
|
I dont understand what i need to do. But I have the following: In the camp_spatialJoin as a result (the green circle) i have this info: Where i have the field percentaje in 0 and for that row, the join_count in 1. So how to set up the model to have my final result with the percentaje of join:count*100 / qtty of points in sed_006 resource.
... View more
08-22-2017
07:31 AM
|
0
|
0
|
1807
|
|
POST
|
Hello, Im pretty new on using arcmap and specially using the modelViewer. Im trying to do the following: I have 2 layers, point and polygon, that i used a spatial join to know how many points are intersected in the polygon layer. After i generate the result in a join_count field, i want to add in the percentaje field, the % related to the total of points that i have. My model is the following.: campamentos is my polygon layer and sed_006 is my point layer. After executing the model, the percentaje field is still 0. My formula for calculate field is ([Join_Count]*100)/Filas. What am i doing wrong? Thanks for all the help provided!
... View more
08-22-2017
06:31 AM
|
0
|
7
|
1934
|
|
POST
|
Im not sure if u can do that programatically, so why u dont use arcmap for having a layer with multiple factors?. Most of the time u need to use more than 1 layer to represent different kind of things, for example temperature and wind Also , maybe u will need to have a dynamic layer for showing more than 1 factor at the time in the legend, in that way u can have 2 or more layers in the same service.
... View more
07-28-2017
06:24 AM
|
0
|
2
|
1759
|
|
POST
|
I still dont understand what u wanna do, but this example may help u. In the service they setted up a feature layer with 5 different symbol types and they made just one legend that containts the layers that have been added in the map. ArcGIS API for JavaScript Sandbox
... View more
07-27-2017
08:40 AM
|
0
|
4
|
1759
|
| 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
|