|
POST
|
*bumping* Kelly Hutchins is this still the case (that they aren't enabled)??
... View more
12-03-2015
04:13 PM
|
0
|
0
|
1855
|
|
POST
|
If the photos are posted online, you can just add the photo's URL as an attribute item to your point layer and then hotlink it inside your infoWindow using a custom Content function. If the photos are being stored locally on your network, well........that gets more difficult. You could add them as attachments to your data or you're going to be dealing with HTML5 and the FIleReader API like this and this.
... View more
12-02-2015
11:45 AM
|
0
|
0
|
954
|
|
POST
|
Bump bump bump. This is quite annoying (but what isn't when dealing with IE?).
... View more
12-02-2015
09:05 AM
|
0
|
1
|
1110
|
|
POST
|
Awesome! Sometimes I surprise myself. Glad you were able to code it.
... View more
12-02-2015
07:53 AM
|
2
|
0
|
4235
|
|
POST
|
I can think of perhaps one way of doing this but I'm not 100% sure (and I don't have actual code to share). 1.) Create and register two custom print templates with ArcGIS Server: * One print template is your basic map, minus the legend * Second print template has just your legend within the visible area of the layout (i.e. move the data frame off of the physical map space so it won't appear when you use the template). 2.) Use the 1st map template with PrintTask as you normally would. 3.) In the Callback function for the printTask, pass the results of the 1st printTask to a second function which generates the legend using the second print template. 4.) In the second printTask callback, initiate some sort of GP service using ArcPy to combine the two separate PDFs into the final, finished PDF. Ugly, kludgy, and something I'd rather not tackle. Steve
... View more
12-01-2015
03:29 PM
|
2
|
3
|
4235
|
|
POST
|
There's lots of solutions online. Here's one discussion and another.
... View more
11-30-2015
04:32 PM
|
1
|
2
|
28250
|
|
POST
|
Ok, my bad, I was reacting to the screenshots in the blog post where the popups are HUGE in comparison. You're right- in the actual samples, they are similarly sized to the previous API versions. I do prefer having the colored title pane from previous APIs. Will this now require a CSS adjustment or will you be providing options within the API?
... View more
11-20-2015
08:38 AM
|
0
|
1
|
1764
|
|
POST
|
I love that the map now adjusts itself to display the full popup area when the feature is near the edge of the map frame but why are they now the size of Texas??
... View more
11-20-2015
08:10 AM
|
1
|
3
|
1764
|
|
POST
|
My organization migrated their stream gage monitoring application to a JS API based product and it's performance has been inconsistent so I'm wondering if I'm not publishing content with the right settings. Without getting too "in the weeds" about the JS side of things, the app performs deferred list of 16 queries against a standalone table inside a published service when the web map initially loads, and then every 5 minutes after initial page load. Most of the time it works but some times the queries (which do seem to complete) return no records. I'm not seeing any errors in the console but the response from the callback lists an empty array of features. I can hit refresh about 7 times in a row and the app will look correct but the next refresh or so afterwords will have these empty query results returned. I believe that most of the initial, default settings when publishing a service are used (High isolation, min 1, max 2 instance per machine) with one exception: Pooling -> Maximum time an idle instance can be kept running: 180 seconds (default is 1800) As an example of "high demand," yesterday was our most recent flood event and we had 5,690 sessions / 4,527 users / 13,136 page views from our application. During one part of the afternoon, the application had about 93 simultaneous users. Steve
... View more
11-18-2015
12:45 PM
|
0
|
0
|
1911
|
|
POST
|
Well I'll be damned. That works too. Ugh. ESRI will never have enough (clear) documentation. Thanks, Robert!
... View more
11-12-2015
12:20 PM
|
0
|
0
|
1790
|
|
POST
|
This is an extremely hack-ish way to do it but this will work: window.onload = function() {
document.getElementById('layerList_checkbox_9').labels[0].innerText = "Milepost Labels";
} First, you need to examine the HTML to find the ID of the checkbox in the layerList widget. Once you know that, you can modify it but it has to be done AFTER the page loads and all scripts run. That's why I have it in a window.onload event. Reference 1 Reference 2
... View more
11-12-2015
12:09 PM
|
0
|
0
|
1790
|
|
POST
|
I'm using the LayerList for a small project. It basically meets my needs despite its limited functionality. Anyways, I added a labelLayer to my project to label the features of another feature layer in the project and I wanted to have the ability to turn the labels on/off. I added the labelLayer as one of the layers to the LayerList widget but I cannot figure out where it's getting the label text for the checkbox in the LayerList. My simple code for the labelLayer: var renderer = new SimpleRenderer(symbol);
var labelLayer = new LabelLayer("label1", {
id: "Milepost Labels",
mode: "dynamic",
visible:true
});
labelLayer.addFeatureLayer(fsMpLayer, renderer, "M.P. {milepost}", { pointPriorities: "AboveRight" });
labelLayer.setAlgorithmType("DYNAMIC");
labelLayer.setMinScale(24000); and for the LayerList... layerWidget = new LayerList({
map: app.map,
subLayers: false,
layers: [
// {layer: ortho2013Layer,
// visibility: false
// },
{layer: geolMapLayer,
subLayers: false,
visbility: false
},
{layer:memoSegmentLayer,
visibility:false
},
{layer: soilsLayer,
visibility:false
},
{layer: streamLayer,
visibility:false
},
{layer:roadsLayer,
visbility:true
},
{layer:mlhLayer,
visibility:true
},
{layer:fsMpLayer,
visibility:true
},
{layer:streamCrossingLayer,
visibility:true
},
{layer:maintConcernLayer,
visibility:true
},
{layer:labelLayer,
visibility:true
}
]},"layerList");
layerWidget.startup(); And inside the app, it just states "labels" as the text for the labelLayer checkbox: Is there anyway to change that?? Steve
... View more
11-12-2015
11:51 AM
|
0
|
3
|
4940
|
|
POST
|
I'm assuming you saw this thread which addresses the same issue? Do you see any errors thrown in the console of the browser? Any network errors returned with the request? Does the Geocoder work if you submit a request through the REST directory endpoint?
... View more
11-06-2015
07:59 AM
|
1
|
4
|
2074
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Thursday | |
| 2 | Thursday | |
| 1 | 2 weeks ago | |
| 1 | 2 weeks ago | |
| 1 | 2 weeks ago |