|
POST
|
If u use graphicslayer. is graphicslayer.clear(); if u use map.graphics is map.graphics.clear(); if u use layers, map.removeAllLayers() for all of them or removeLayer(urLayer) to remove the desired layers that u added in the map. I hope this helps.
... View more
02-02-2018
06:29 AM
|
0
|
0
|
2297
|
|
POST
|
Yea i read all of those already and i have tried but nothing came out of that XD
... View more
02-01-2018
11:52 AM
|
0
|
1
|
901
|
|
POST
|
Right now if i dont place a dateFormat, they will show the correct datetime on the infoTemplate each time i click a feature. The thing is the format is in English, and i really need to have it in Spanish and in this way : d/MM/yyyy HH:MM:ss. Do u know any fix for that? Because when i use the dateFormatter like this example: ${Date_:DateFormat(datePattern:'d/MM/yyyy HH:MM:ss', selector:'date')} It will change the format to the desired one in spanish, but it will drop -3hrs to the current date.
... View more
02-01-2018
11:41 AM
|
0
|
3
|
901
|
|
POST
|
14400000 is 4 hrs? Im right now in gmt -3 , and another thing i want to ask you is u are using dojo.locale, right? Right now im not using popuptemplate, im using infotemplate, so the code that i have is the following. var convertDate = (jsDate) =>{
console.log(jsDate);
var myDate = locale.format(new Date(Math.abs(jsDate + 108000000)),{
selector: "date",
datePattern: 'd/MMMM/yyyy HH:MM:SS'
});
console.log(Math.abs(jsDate + 14400000));
return myDate;
}; let chqInfoContent =
"<div style=padding-top: 10px;><b>Time </b> ${initialDate:convertDate}<br></div>"+
"<div style=padding-top: 10px;><b>ETR:</b> ${ETR:convertDate}<br></div>"; And the resolution that i have is showing me the infoWindowin milliseconds. Thanks for ur help!!
... View more
02-01-2018
11:00 AM
|
0
|
5
|
2966
|
|
BLOG
|
is that compatible with webpack?, i dont use bower, i use npm+webpack 😞
... View more
01-31-2018
01:01 PM
|
1
|
0
|
5082
|
|
POST
|
I asked this before and it might be useful for u. https://community.esri.com/message/518589 Right now im using a module bundler to help me on that...
... View more
01-31-2018
12:52 PM
|
0
|
0
|
767
|
|
POST
|
Maybe if u show some part of the code on how u are loading those, it might help. Greetings.
... View more
01-31-2018
12:46 PM
|
0
|
0
|
618
|
|
POST
|
Hello, I have the following question. How can i set up a dateformat for a infowindow? Right now my problem is the infowindow is showing a incorrect timezone, (-3 hr to my current timezone), so i need to fix it. Here is my code: let chInfoTemp= new InfoTemplate();
chInfoTemp.setTitle("<b>Current:</b>");
let chInfoContent =
"<div style=padding-top: 10px;><b>Starting: </b> ${initial_date:DateFormat(datePattern:'d MMMM yyyy, HH:mm:ss.', selector:'date')}<br></div>"+
"<div style=padding-top: 10px;><b>Final:</b> ${er:DateFormat(datePattern:'d MMMM yyyy, HH:mm:ss.', selector:'date')}<br></div>";
chInfoTemp.setContent(chInfoContent);
Thanks in advice!
... View more
01-26-2018
05:07 AM
|
0
|
14
|
4327
|
|
POST
|
U need to use the token per each layer u want to add in the map. If u dont do that, it will pop up the login window.
... View more
01-16-2018
06:17 AM
|
0
|
1
|
1277
|
|
POST
|
Let me see if i understood. U are getting a data response that contains features from ur rest service?. In that case, why u are making a new array to pass it to the graphicslayer? and also, which one is the purpose to use a graphicslayer? If u wanna show data, make a ur desired query with something to filter the results (like definitionExpression or so). Im not too familiar with the new api 4.x, but i have done a lot of complex queries on rest services with a lot of data, so to me its kinda weird that u have the "stack" problem with a variable.
... View more
01-09-2018
12:59 PM
|
0
|
0
|
1824
|
|
POST
|
I think u are doing something wrong on handling the array of graphics that made the computer's memory hits the call stack limit so the browser hardcoded stack size or memory exhaustion.
... View more
01-05-2018
07:37 AM
|
0
|
3
|
1824
|
| 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
|