|
POST
|
I'm using "esri/tasks/support/PrintTemplate", "esri/tasks/support/PrintParameters", and "esri/tasks/PrintTask" to hit an ArcGis Server 10.4.1 Print service and everything is great until I rotate the map. 1) How do I add rotation to the webMap that the Print Task builds? 2) When I add the rotation to the WebMap Json and make the call with the HTML interface on ArcGis Server, it cuts off the outer edges at the corners. If I point it due north - everything is fine. I'm trying to get a screen shot and a JS fiddle but my data is sensitive and I need to find a different data src first. The white line is Very reminiscent of the rotation bug introduced in 4.2 and fixed in 4.3 but on the server side. The white seems to be where the due north boundaries would be. Thanks in advance.
... View more
03-23-2017
10:48 AM
|
0
|
4
|
1909
|
|
POST
|
Here is how I convert the SVG from the legend to the DIV. (Ported 3.x digit TOC code) _getLegendIconUrl: function(legend) { var src = legend.url; if (src == null) { src = "data:image/png;base64," + this.rootLayerTOC._legendResponse.layers[this.rootLayer.layerId].legend[0].imageData; } else if (src != null && src.indexOf('data') == -1) { // in some cases NULL value may cause #legend != #of renderer entry. if (!has('ie') && legend.imageData && legend.imageData.length > 0) { src = "data:image/png;base64," + legend.imageData; } else { if (src.indexOf('http') !== 0) { // resolve relative url src = this.rootLayer.url + '/' + this.serviceLayer.id + '/images/' + src; } if (this.rootLayer.credential && this.rootLayer.credential.token) { src = src + "?token=" + this.rootLayer.credential.token; } else if (esriConfig.defaults.io.alwaysUseProxy) { src = esriConfig.defaults.io.proxyUrl + "?" + src; } } } return src; },
... View more
03-15-2017
08:13 AM
|
0
|
0
|
3928
|
|
POST
|
Does this help? // My config, passed to getSymbol() location: { path: 'M28,0.074 28,10.87 14,42 0,56 14,42 28,36.826 42,42 56,56 42,42 28,10.657z', size: 35, startAngle: 0, color: {r: 36,g: 117,b: 255,a: 1,color: ''} } me.getSymbol = function (path, color, size, angle) { var markerSymbol; require(["esri/symbols/SimpleMarkerSymbol"], function (SimpleMarkerSymbol) { markerSymbol = new SimpleMarkerSymbol(); markerSymbol.setPath(path); markerSymbol.setColor(color); markerSymbol.setOutline(); markerSymbol.setSize(size); markerSymbol.setAngle(angle); }); return markerSymbol; };
... View more
03-15-2017
08:08 AM
|
0
|
0
|
3928
|
|
POST
|
I would think using the standard web front end build tools would work much better for you. grunt, gulp, yeoman - things like that. They are great at moving things around and modifying paths and other tedious tasks. https://medium.freecodecamp.com/making-sense-of-front-end-build-tools-3a1b3a87043b#.hf6jxsa0z There is no reason VS can't modify the files as well. We use it to check in our config changes and develop new widgets. Since we often have a C# backend and we are a Microsoft shop, it's a natural fit. But if you are moving files around and changing strings - grunt or the like is an easy way to go. Editing configs can easily be done with VS, but I actually prefer notepadd++ ; ) We have a project that contains all the downstream paths making it easy to navigate using the usual VS tools.
... View more
03-06-2017
08:39 AM
|
0
|
1
|
825
|
|
POST
|
*FacePalm* 3 days I've spent mucking around with projections ( I hate projections and just assumed it was that ) and arrrg it was my upgrade from 4.1 to 4.2. Thank you for your post.
... View more
03-02-2017
12:39 PM
|
0
|
0
|
1125
|
|
POST
|
I agree with Bryan that your path is wrong and the "[ ]" need to be removed. However, I experienced that same error because I copied in the Esri SDK and it kept the same permissions that it had in the source directory and the AppPool user did not have permissions. I had to go into FileManager, Click on the directory above, Edit permissions of the AppPool user and grant read permission. This copied the permissions down through the directory tree solving my issue.
... View more
03-01-2017
11:07 AM
|
0
|
0
|
785
|
|
POST
|
I didn't know it held symbology as well. Excellent point.
... View more
02-24-2017
11:23 AM
|
0
|
0
|
2076
|
|
POST
|
Try it from the client: geonet.esri.com/thread/183682-arcgis-javascript-how-to-layers-custom-field-value-rendering // Key section of above link var renderer = new ClassBreaksRenderer(null, "STATISTICS"); renderer.addBreak(0, 10, new SimpleFillSymbol().setColor(new Color([56, 168, 0, 0.5]))); renderer.addBreak(11, 30, new SimpleFillSymbol().setColor(new Color([139, 209, 0, 0.5]))); renderer.addBreak(31, 50, new SimpleFillSymbol().setColor(new Color([255, 255, 0, 0.5]))); renderer.addBreak(51, 90, new SimpleFillSymbol().setColor(new Color([255, 128, 0, 0.5]))); renderer.addBreak(91, Infinity, new SimpleFillSymbol().setColor(new Color([255, 0, 0, 0.5]))); layer.setRenderer(renderer); layer.redraw();
... View more
02-24-2017
11:19 AM
|
1
|
1
|
1662
|
|
POST
|
Odd. You may check your security from \arcgis\manager - go to the service and click the "Capabilities" link. You should see at least two urls. I've never seen a FeatureServer w/o a matching MapServer. What do you see when you go to \arcgis\rest\services?
... View more
02-23-2017
09:34 AM
|
1
|
0
|
2076
|
|
POST
|
I believe what Tanu is saying is that when you load your layer with the ArcGISDynamicMapServiceLayer class you should use its dynamiclayerinfos collection to set when the layer becomes visible and not. So your dynamic layer will stay visible until you reach your threshold, where it will turn off and the cached one will turn on. It's the same thing you do in ArcMap when you set the levels where the layer becomes visible and not.
... View more
02-23-2017
06:59 AM
|
0
|
1
|
2158
|
|
POST
|
It is, but it's hard to keep secrets in JavaScript ; ) I need to bust it open this week for a client that doesn't want to wait for the 4.x port. I'll let you know what I find.
... View more
02-23-2017
06:41 AM
|
2
|
1
|
3011
|
|
POST
|
Oh, and Yes. The URL that loads could be different from the container document (the portal/web map). It is a collection of regular map services. So the Web Map url might be different from its contents. I'm getting nervous that I sound more authoritative than I feel. The Portal stuff is still pretty new to me. But I do know that once a layer is loaded, there is a proper URL to it's no kidding source.
... View more
02-23-2017
06:36 AM
|
0
|
0
|
2076
|
|
POST
|
I would have expected that to work. It worked on my servers. Try dropping the layer ID /services.arcgis.com/somekey/arcgis/rest/services/myname/MapServer /services.arcgis.com/somekey/arcgis/rest/services/myname/MapServer?f=json will return the info in a code readable format. /services.arcgis.com/somekey/arcgis/rest/services/myname//MapServer/legend or /MapServer/legend?f=json should get you what you are after Common esri rest params f= Return Format [HTML | JSON | PJSON | more I can't remember ] token= for secure services - go to "generate token" and add to your calls
... View more
02-23-2017
06:28 AM
|
0
|
2
|
2076
|
|
POST
|
you might take a peek at how the old 3.x draw widget did it. Once a feature was drawn you could select it and drag it anywhere. I never considered how it did that.
... View more
02-22-2017
10:44 AM
|
0
|
3
|
3011
|
|
POST
|
Try asking this in the Developer \ Android section of these boards. https://community.esri.com/community/developers/native-app-developers/arcgis-runtime-sdk-for-android With the Android SDK, how do I perform an identify and popup like the JavaScript guys do? [Display identify results in popup | ArcGIS API for JavaScript 3.19 }] I believe this is what you are trying to do. Click, see what's under it, if something found then changes its symbology and display some info. close?
... View more
02-22-2017
10:20 AM
|
0
|
0
|
1751
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-16-2025 09:54 AM | |
| 1 | 05-12-2014 01:47 PM | |
| 1 | 06-22-2017 08:13 AM | |
| 1 | 02-12-2018 09:03 AM | |
| 1 | 01-28-2016 03:55 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-25-2025
06:49 AM
|