|
POST
|
no worries. thanks again for catching the problems in those samples. you aren't going to be using any of the pre-baked editing tools available in the API if you need to push to .NET and SQL without using an SDE database and ArcGIS Server Feature Service. because of this, samples will be harder to come by. with regard to catching invalid geometries, your best bet is to use the simplify operation exposed by a geomety service. you can pass JSON features to it and get back geometries that are guaranteed to be topologically correct. you can find a sample here where we simplify prior to buffering. i have seen customers write client side logic for spatial relationship validation, but haven't ever seen an example for something that complex in the API resource center.
... View more
08-14-2013
11:57 AM
|
0
|
0
|
2430
|
|
POST
|
looks like they forgot to load a couple modules when they converted this sample to AMD. i added Color and SnappingManager and afterwards Snapping started working.
require([
...
"esri/layers/FeatureLayer",
"esri/SnappingManager",
...
"dojo/_base/array", "dojo/_base/Color", "dojo/parser", "dojo/keys",
...
function(
Map, Edit,
ArcGISTiledMapServiceLayer, FeatureLayer, SnappingManager,
SimpleMarkerSymbol, SimpleLineSymbol,
Editor, TemplatePicker,
esriConfig, jsapiBundle,
arrayUtils, Color, parser, keys
)
thanks for the catch! i've notified the team.
... View more
08-14-2013
09:51 AM
|
0
|
0
|
2430
|
|
POST
|
almost perfect, in the developer tools in chrome, i saw the error: "Uncaught SyntaxError: Unexpected token } line 67" because I had the app open in Notepad++, i was able to highlight the curly brace that opens your init function and realize the tail end of our code wasn't inside. should be:
geocoder.startup();
var imageParameters = new esri.layers.ImageParameters();
imageParameters.layerIds = [1];
layer = new esri.layers.ArcGISDynamicMapServiceLayer("url", {
"imageParameters" : imageParameters
});
map.addLayer(layer);
}
//} that last curly brace wasn't closing anything.
... View more
08-14-2013
08:02 AM
|
0
|
0
|
2330
|
|
POST
|
you're not actually having trouble loading tiles from the public server, correct? check out this forum thread for more info.
... View more
08-13-2013
08:32 PM
|
0
|
0
|
1341
|
|
POST
|
hi RuthAnne, i see a couple different problems with the code you posted... 1. you aren't allowed to define more than one function with the same name. instead of having two "init" functions, it would be a better idea to just have one and place all the code that needs to fire when the application loads in one place. 2. you should be placing all the dojo.require() statements we use to load modules at the very top of your script block. right now you make a second unnecessary call to dojo.require("map"), in the middle of your javascript. this can safely be removed. 3. in your second init function, you are instantiating a second map. this should be removed as well. 4. lastly, your updateLayerVisibility() function isn't currently called by anything. thats not necessarily going to cause any errors, its just something you should know.
... View more
08-13-2013
08:28 PM
|
0
|
0
|
2330
|
|
POST
|
the short answer to your question is that snapping is not broken in IE. i was able to reproduce the error you described in IE10 only. when using the developer tools to set "IE9"as the browser and document mode, measuring and snapping behavior returned to normal. the IE10 specific bug you found affects AMD style maps only, and relates to a problem with the measurement widget in general, not to snapping. here is the tracking number for the issue i logged a few minutes ago on your behalf. [NIM093983: Measurement widget doesn't display area calculations in IE10 (AMD apps only).] sorry for all the confusion and thanks for bringing the item to our attention!
... View more
08-13-2013
03:09 PM
|
0
|
0
|
2430
|
|
POST
|
i don't see the behavior you're describing in this sample. can you post some code or a link to a repro case?
... View more
08-13-2013
10:42 AM
|
0
|
0
|
1839
|
|
POST
|
i think what Diane is saying is that she is using ArcGIS Online to publish her data. since AGOL only supports publishing hosted cached map services and feature services, so you are not able to create an ArcGISDynamicMapServiceLayer object pointing at AGOL content.
... View more
08-13-2013
10:36 AM
|
0
|
0
|
1093
|
|
POST
|
you can see an example of snapping in action using the JS API here. the same API supports autoComplete as well (with the help of a geometry service)
... View more
08-13-2013
10:32 AM
|
0
|
0
|
2430
|
|
POST
|
my understanding is that the most essential requirement for scalebars in printouts is that the map document on the server being used as a layout template includes its own scalebar in the layout frame. do you see a scalebar when you make a request for layout template "A3 Portrait" on our sample server? I am positive that that template has a scalebar.
... View more
08-13-2013
09:13 AM
|
0
|
0
|
752
|
|
POST
|
if the option is enabled, you will see "Supports Dynamic Layers: true" in the REST endpoint for the map service. in order to set this property when publishing a service, you need to toggle "Allow per request modification of layer order and symbology" box within the Mapping capability.
... View more
08-08-2013
11:38 AM
|
1
|
0
|
2842
|
|
POST
|
I couldn't find a 10.1 sample service with visible labels and the option to render layers dynamically, so i published my own and confirmed that you dont have to set a renderer to get labels to stop displaying... app.map = new esri.Map("map", {
basemap: "topo",
center: [-88.13533, 41.78473],
zoom: 6,
slider: true
});
dynUrl = "http://[servername]/arcgis/rest/services/statesLabels/MapServer";
app.dynLayer = new esri.layers.ArcGISDynamicMapServiceLayer(dynUrl, {
"id": "usa",
"opacity": 0.9
});
//app.dynLayer.setVisibleLayers([0]);
var optionsArray = [];
var drawingOptions = new esri.layers.LayerDrawingOptions();
drawingOptions.showLabels = false;
//drawingOptions.renderer = renderer;
optionsArray[0] = drawingOptions;
app.dynLayer.setLayerDrawingOptions(optionsArray);
app.map.addLayer(app.dynLayer);
... View more
08-08-2013
10:25 AM
|
0
|
0
|
2842
|
|
POST
|
sometimes my nose is better than other times. 🙂 you can also simulate the use of a CA signed cert by installing the self-signed certificate in trusted storage on a particular machine. good luck with the rest of your project!
... View more
08-02-2013
07:35 AM
|
0
|
0
|
1621
|
|
POST
|
just a guess, but maybe this is caused by a lack of trust in the SSL certificate on your own machine?
... View more
08-01-2013
02:24 PM
|
0
|
0
|
1621
|
|
POST
|
if you set a breakpoint at that line, are there any differences in the 'geom' object you are passing to map.centerAndZoom() when you switch services?
... View more
08-01-2013
07:57 AM
|
0
|
0
|
737
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-16-2014 02:35 PM | |
| 1 | 03-15-2013 04:25 PM | |
| 1 | 06-01-2016 10:51 AM | |
| 1 | 12-28-2015 04:46 PM | |
| 1 | 12-28-2015 05:26 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|