|
POST
|
Hello, I want to ask how to set up the environment to load AMD modules from Arcgis JS Api 4 or 3.17 in a ES6 way. Cuz i want to use react as a framework. I have been seeing for some examples but i still dont understand too well how to do it from 0. (I already see some examples that odoenet site gives and nazarewk/dojo-jsx have in github) I want to use gulp and webpack dev server. Thanks for all ur help !
... View more
08-05-2016
08:52 AM
|
2
|
9
|
11491
|
|
POST
|
im using 3.16, im going to update tp 3.17. 8/04/2016: I installed the 3.17 version and i still have the same issue...
... View more
08-03-2016
03:22 PM
|
0
|
0
|
764
|
|
POST
|
Hello, I have a web app hosted in a server that when i use chrome i have the following error. login.js:20 Uncaught TypeError: Cannot read property 'GraphicsLayer' of undefined If i tried in m.edge, the app shows w/o problems. I installed the arcgisapi file in the server, modifying the path (localhost:443 for www.myserverdomain.net) on dojo.js and init.js Also my index file is like this. <!DOCTYPE HTML>
<html lang="es">
<head>
<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" >
<link rel="shortcut icon" href="">
<title>Login</title>
<link rel="stylesheet" type="text/css" href="arcgis_js_api/library/3.16/3.16/dijit/themes/tundra/tundra.css" />
<link rel="stylesheet" type="text/css" href="arcgis_js_api/library/3.16/3.16/esri/css/esri.css" />
<link rel="stylesheet" type="text/css" href="css/login.css" />
<link rel="stylesheet" href="js/vendor/font-awesome/css/font-awesome.min.css" />
</head>
<body>
<div class="login_wrapper">
<section id="myLogin" class="myLogin"></section>
<footer class="login_footer">
<h4 class="notification-login"></h4>
<div class="login_footer__div">
<img class="login_footer__img" src="css/images/chq_i.png" />
<p class="footer__div__p">© 2016 Planificación y Gestión de la Información Operacional</p>
</div>
</footer>
</div>
<script src="arcgis_js_api/library/3.16/3.16/init.js"></script>
<script src="js/vendor/jquery-2.2.1.min.js"></script>
<script src="js/vendor/prefixfree.min.js"></script>
<script src="js/login.js"></script>
</body>
</html> What im doing wrong or what is is happening? Im using legacy mode to load the code that i need. (like: var graphiclayer = new esri.layers.GraphicLayers())
... View more
08-03-2016
02:14 PM
|
0
|
1
|
1502
|
|
POST
|
OK now i understand. Yea, i think when u do an applyedits, u need to wait till it get done, so u need to do callbacks o promises to handle the asyn issue. So making a summary, u need to do: After applyedits ends, rescue the objectid for the new object generated by the service. After that, compare the objectid with the one u have already in the projects layer ( cuz it has to be updated already) And then u get the globalid field. I understand the flow like this, tell me if im wrong. I could do something like this to resolve the problem: function doAppEdits(projectPoly,callback){ app.proyectLayer.applyEdits([projectPoly],null,null).then((response)=>{ if (response[0].objectId){ callback(response[0].objectId); return; } callback("NONE"); }); } //here u will get the objectid number or "NONE" if doesnt exist. var doneApplyEdits = doAppEdits(pp, (callback)=>{ //compare the array of project that u have with the objid that u already generated here // if the layer is not refreshed maybe u will have to refresh it by force. I know there is a function to do that but i dont remember how was it. var projectGlobalID = app.projectLayer.graphics.map(project =>{ if(project.attributes.OBJECTID == callback){ return project.attributes.GlobalID; } }); console.log("my global id for this project is:", projectGlobalID); });
... View more
07-28-2016
07:15 AM
|
0
|
1
|
5073
|
|
POST
|
So, u dont need the objectID, u need the global, right? Cuz to getting the objectid generated for the last project u must do something like: var myOBJID = response[0].objectId; //4410 Can u open functions to see what u get?
... View more
07-28-2016
06:51 AM
|
0
|
0
|
5073
|
|
POST
|
Can u tell me what u get after this line? Cuz i think u are not getting what u want for a "project" (globalid and object,right?) app.projectLayer.applyEdits([projectPoly], null, null).then(function(response) { //here <-- ... }
... View more
07-28-2016
06:39 AM
|
0
|
2
|
5073
|
|
POST
|
OK. I tried with 7zip and now it worked. The next step is specify a portal address or arcgis online address. In my company we still doesnt have that. We use arcgis server tho. We installed the web adaptor and we installed portal, but we have problems with the SSL certificate. We dont know how to set it up or where we need to do it. For us is not very clear the guide that u guys have in the website.
... View more
07-27-2016
01:22 PM
|
0
|
1
|
2348
|
|
POST
|
app.projectLayer.on('edits-complete', function(result){ var projectObjId = result.adds[0].objectId; var projects = app.projectLayer.graphics; for (var i = 0, len = projects.length; i < len; i++) { console.log(projects.attributes.GlobalID); } can u tell me what u get in the result from edits-complete? I just know it will be an array, but i wanna know the structure of it. I read in somewhere that maybe for accessing the objectid u need to do something like: results.adds.attributes.objectId
... View more
07-27-2016
01:04 PM
|
0
|
0
|
5073
|
|
POST
|
I already downloaded it again from another computer, and this is what im getting when i want to extract the files.
... View more
07-27-2016
12:51 PM
|
0
|
5
|
2348
|
|
POST
|
Remember the fields are case sensitive. I think objectId has to be uppercase to get the value. Try it and see if it was the issue.
... View more
07-27-2016
12:12 PM
|
0
|
2
|
5073
|
|
POST
|
Hello, im trying for first time to make the app builder works (dev edition). I just downloaded from the website and when im going to extract the files, im having errors with some node modules. After that (ignoring the errors) i start the startup.bat file and also give me errors. I downloaded the zip file twice already, so what im doing wrong? Thanks in advice.
... View more
07-27-2016
12:02 PM
|
0
|
9
|
3318
|
|
POST
|
I found my issue, i had to make a polygon like this var rectangle = new esri.geometry.Polygon(new esri.SpatialReference(geometry.spatialReference));
rectangulo.addRing([ [geometry.x-1,geometry.y-1],[geometry.x-1,geometry.y+1],[geometry.x+1,geometry.y+1],[geometry.x+1,geometry.y-1],[geometry.x-1,geometry.y-1] ]);
... View more
06-14-2016
12:41 PM
|
0
|
0
|
794
|
| 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
|