|
POST
|
Yes, the ArcGIS JS API supports WMS layers - see https://developers.arcgis.com/en/javascript/jsapi/wmslayer-amd.html which also links to some examples.
... View more
01-15-2014
05:57 PM
|
0
|
0
|
788
|
|
POST
|
During your onChange event, you update the variable for the layer, but don't actually do anything with it. Within this function, you need to remove the existing layer from the map, recreate it, then re-add it:
var stewardship = new FeatureLayer("..../FeatureServer/0" , {...});
map.addLayers([stewardship]);
dojo.connect(dijit.byId("Activity"), 'onChange', function(value){
//remove the existing stewardship layer
map.removeLayer(stewardship);
//re-create it using the new ID
stewardship = new FeatureLayer("..../FeatureServer/" + layerId, {
id: 'stewardship_' + layerId....
});
//add it to the map again
map.addLayers([stewardship]);
});
... View more
11-21-2013
04:51 PM
|
0
|
0
|
796
|
|
POST
|
http://om.co/2013/11/13/javascript-is-hot/ well done everyone on picking the right ArcGIS Server API 😉 [ATTACH=CONFIG]29160[/ATTACH]
... View more
11-17-2013
01:57 PM
|
0
|
2
|
1336
|
|
POST
|
We have the clustering working well on 100,000+ points but noticed that when the cluster marker has more than 1000 count it drops the marker graphic and only displays the label. Is this a limitation of the Javascript api or a bug with it? Could it be it is droping it because it can't fit a 4 digit label inside the graphic? I noticed ESRI example doesn't go over 999 either. https://developers.arcgis.com/en/javascript/jssamples/layers_point_clustering.html Anyone have suggestions on how to get the marker to work for counts of more than 999? I think there are 2 reasons why people aren't seeing more than 1000 markers: - by default ArcGIS Server / ArcGIS Online only return the first 1000 features from a query - if you've circumvented this (which it sounds like you have, if you're seeing 100k markers) check the renderer. The renderer in the sample above contains: renderer.addBreak(200, 1001, red); Try adding class breaks which contain a valid range for your data.
... View more
11-15-2013
06:07 PM
|
0
|
0
|
2484
|
|
POST
|
Thanks Jeremy, Some additional samples showing how to interact with the REST API directly would be good. The results of analysis can be stored as new hosted layers in your organization subscription This sounds promising for what I'm trying to do. Is it an option to write the output to an existing AGOL layer, ie to edit and existing layer? The documentation suggests not: If provided, the task will create a feature service of the results Could you open an enhancement request to allow the results to be written to an existing (editable) layer? Thanks, Steve
... View more
11-15-2013
06:01 PM
|
0
|
0
|
1683
|
|
POST
|
1) I'm looking for a sample showing how to use the new Spatial Analysis Service tasks, eg summarizeWithin. Unlike other tasks these are not listed on the page at https://developers.arcgis.com/en/javascript/jsapi and the help page doesn't list methods (eg summarizeWithin.execute). Do we need to call this task manually using esri.request using the URL http://analysis.arcgis.com/arcgis/rest/services/tasks/GPServer/SummarizeWithin/submitJob? (There is an example using the summarize nearby widget, but I'd prefer to use the task directly) 2) Does the spatial analysis service only work on ArcGIS.com layers? The documentation says: The Spatial Analysis service contains a number of tasks that allow you to perform common spatial analyses on your hosted data but also: These tools allow end-users to easily perform analysis against layers hosted in Online as well as other layers they have access to. Thanks, Steve
... View more
11-14-2013
08:30 PM
|
0
|
7
|
2236
|
|
POST
|
+1 to this. I had to rename the .container class in Bootstrap, which I'm sure will bite me when they update Bootstrap and I forget about it 😉
... View more
11-06-2013
02:35 PM
|
0
|
0
|
1327
|
|
POST
|
(broken link) Hi Todd, The new syntax is map.on("update-end", function() {
//do something
}); See https://developers.arcgis.com/en/javascript/jsapi/map-amd.html#update-end Cheers, Steve
... View more
10-24-2013
12:30 AM
|
0
|
0
|
1317
|
|
POST
|
Hi Abhy, This question is related to the hosted service provided by Esri at ArcGIS.com - this doesn't have the same capabilities as running your own ArcGIS Server locally. Steve
... View more
10-17-2013
12:59 AM
|
0
|
0
|
2644
|
|
POST
|
Nobody actually answered the question: Is it possible to create a ArcGISDynamicMapServiceLayer from map service published from ArcGIS Online? Thanks, I believe the answer is no. AFAIK, ArcGIS Online only supports Tiled or Feature layers, and not Dynamic. The help file lists: Types of hosted services you can publish Hosted feature services Hosted tiled map services
... View more
10-15-2013
01:30 PM
|
0
|
0
|
2644
|
|
POST
|
i found myself recently forcing jquery OUT of my code and doing everything in dojo. Think I am better off for that as well FWIW, I've found the opposite and I'm using jQuery in my "boilerplate" now. Is there any reason NOT to use it? So many 3rd party frameworks and plugins rely on jQuery, so it seems logical to use it......
... View more
10-12-2013
02:59 AM
|
0
|
0
|
731
|
|
POST
|
...until ESRI comes with some cross-platform compatible API that can be utilised on any device This may be the ArcGIS RunTime, which was mentioned at the UC this year. I haven't used it yet, but the promise is that it will allow the same app to run on any supported device. I'm not sure whether it's actually released yet or is still in beta. In the meanwhile, the JS API is your best option to ensure your app can run on any advice. In terms of designing the user interface, you should look at responsive web design, to allow your application to resize dynamically for any device and orientation.
... View more
10-10-2013
04:51 PM
|
0
|
0
|
3326
|
|
POST
|
In your code you use:
"singleTemplate": infoTemplate
but I can't see where you've defined infoTemplate in the code snippet. Can you include a link to your live site, or otherwise show more code? What about putting a breakpoint on that line and verifying that infoTemplate exists? If you look at the sample at http://developers.arcgis.com/en/javascript/samples/layers_point_clustering and step through the code, you can see that they first define the info window, then use it as you have done:
var popupTemplate = PopupTemplate({
....
});
clusterLayer = new ClusterLayer({
�?�
"singleTemplate": popupTemplate
});
so you're on the right track - you may be missing the infoTemplate definition. Steve
... View more
10-09-2013
06:44 PM
|
0
|
0
|
1379
|
|
POST
|
See the sample script at http://jsfiddle.net/slead/Lgbkm/3/ where I'm using esri.request to make an AJAX call to a KML file. This call fails (I need to pass it via http://utility.arcgis.com/sharing/kml?url=) but that's not the issue. The problem is that the error callback isn't called for nearly a minute. It should return an "error" popup but there's a long delay before it appears. If I use url: "adsfdsaf", the error is thrown immediately. This isn't a pressing issue as I have a workaround (use the utility method if the URL contains ".kml" but I'm curious as to why this is occurring. Thanks, Steve
... View more
10-01-2013
06:21 PM
|
0
|
2
|
1175
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-17-2014 08:45 PM | |
| 1 | 03-15-2011 04:23 PM | |
| 1 | 10-18-2019 12:50 AM | |
| 3 | 01-22-2019 02:33 PM | |
| 1 | 09-26-2011 10:36 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-20-2022
12:19 AM
|