|
POST
|
no- capital D did not make it work. Also- using a double quote makes Chrome/Firefox not work.
... View more
09-28-2015
02:51 PM
|
0
|
0
|
3281
|
|
POST
|
Sadly, no. I'm also trying the actual Epoch numbers but that isn't working either: "endDate > date 1443476100"
... View more
09-28-2015
02:36 PM
|
0
|
0
|
3281
|
|
POST
|
This strikes me as odd but I guess it really shouldn't since this is Internet Explorer.. Anyways, I have a simple page that loads two feature layers that have two date fields (a beginning and ending date for events). When I add the layers to my map, I attempt to apply a defintion expression based on those date fields: var today = new Date();
var theDefExp = "endDate > date '" + today.toLocaleDateString() + "'";
theLayer.setDefinitionExpression(theDefExp); This works fine in Chrome and Firefox but, under Internet Explorer 11 (and using any "previous" document modes), this throws 400 errors when it actually attempts to display features. In the ArcGIS Server logs, here's the real error: An invalid where clause or definition expression has been requested: "endDate > date '9/28/2015'" So why does this cause heartburn for IE but not Chrome/Firefox? More importantly, what do I need to change to make it IE friendly? Thanks! Steve
... View more
09-28-2015
01:30 PM
|
0
|
10
|
7210
|
|
POST
|
Take a look at the last bundled example that Riyas provided in this thread. It uses some CSS styling to animate a hash pattern along a line. It's not quite what you want but it's something. Steve
... View more
09-25-2015
11:47 AM
|
0
|
0
|
2656
|
|
POST
|
Try the USGS Earth Explorer. Specify your area of interest and then under the data sets option, expand the aerial imagery group. I typically click the checkbox next to "Aerial Photo Single Frames" but you might want to explore the other options as well. In the past, this search returns scanned air photos which are unregistered. All you need to do is georectify them and away you go. I have also found that most of the photos available are at a large scale rather than small scale (but I'm searching up in the mountains through Forest Service holdings). Steve
... View more
09-24-2015
03:11 PM
|
0
|
0
|
9452
|
|
POST
|
Yay! We have a winner, thanks. I had been trying graphic.attributes[0] but that wasn't working. Didn't think to try the variant you suggested.
... View more
09-15-2015
12:16 PM
|
0
|
0
|
1148
|
|
POST
|
I published a service with an SDE feature class that also includes a joined table for that feature class. When my infoWindow content function fires off, the attributes for both the feature class and the joined table are "there" but they can't be accessed. Anyone have a clue with this one? Normally, you can type graphic.attributes.<attribute field name> and get the values but, as you can see in the screenshot, this isn't the case here. The service is internal so I can't link out to it here, unfortunately. Steve
... View more
09-15-2015
10:58 AM
|
0
|
2
|
3643
|
|
POST
|
I don't have the answer but your question reminds me of a Blog post by ESRI about the client-side GeometryEngine which may be faster if you're dealing with a lot of features. GeometryEngine is in beta and only available in API v3.13 & above.
... View more
09-09-2015
02:56 PM
|
1
|
3
|
3088
|
|
POST
|
How about trying the ASCII character code for line break, carriage return, etc? var text = 'This is line one' + String.fromCharCode(10) + 'This is line two';
... View more
09-09-2015
02:23 PM
|
0
|
0
|
2226
|
|
POST
|
Not only that, you have to remember what the sample may have been called because there's no easy search function for the downloaded bundle of API samples. I ran into this with the older samples that related to various dojo layout templates.
... View more
09-08-2015
09:16 AM
|
0
|
0
|
2268
|
|
POST
|
Just to wrap a bow on this thread, I used Robert's suggestion but had to switch the less than/greater than signs to get it to work properly: var today = new Date();
var theDefExp = "startDate < date'" + today.toLocaleDateString() + "' and endDate > date '" + today.toLocaleDateString() + "'";
constructionPtLayer.setDefinitionExpression(theDefExp);
... View more
09-02-2015
03:35 PM
|
0
|
0
|
3762
|
|
POST
|
Thanks, Robert. My date fields are defined as esriFieldTypeDate so your example should work with my situation.
... View more
09-01-2015
12:58 PM
|
0
|
1
|
3762
|
|
POST
|
Let's say I open the app today, which is August 31st. Given that, here are some scenarios: CLOSURE 1: startDate: August 1st, endDate: August 31st (closure should display) CLOSURE 2: startDate: July 15th, endDate July 31st (closure should not display) CLOSURE 3: startDate: August 25th, endDate: September 2nd (closure shoudld display) CLOSURE 4: startDate: September 1st, endDate: September 2nd (closure should not display) Basically, as long as today's date lies between the startDate and endDate values, the closure should display.
... View more
08-31-2015
10:41 AM
|
0
|
1
|
3762
|
|
POST
|
I have a layer of construction closures in an app I'm developing and for each closure, there is a field for the starting date of the closure (startDate) and a field for the ending date of the closure (endDate). Ideally, I'd like to add a definitionExpression to the FeatureLayer to automatically handle the visibility of any current closures. I know I can't just use: var curDate = new Date();
var fLayer = new FeatureLayer("url", {
definitionExpression: "endDate <= Date " + curDate;
mode: FeatureLayer.MODE_ONDEMAND
}); because that would show current projects but also older, expired projects. So how would I structure the definition expression? Thanks! Steve
... View more
08-31-2015
10:22 AM
|
0
|
6
|
6659
|
|
POST
|
Some older examples don't exist anymore. There used to be a few dojo layout template examples (TOC left side, TOC right side, etc) in the older APIs and they are no longer on any active, searchable site. The only way to get them is to download the older API version. (sarcasm)ESRI really likes listening to its customers.(/sarcasm)
... View more
08-31-2015
08:05 AM
|
1
|
0
|
2268
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Thursday | |
| 1 | Thursday | |
| 1 | a week ago | |
| 1 | 2 weeks ago | |
| 1 | 2 weeks ago |