|
POST
|
This probably wasn't the best way to go, but for my case, I needed a custom legend for a renderer with multiple category values. I tried pulling it out of the renderer directly, but didn't have much luck (I got color and symbol info, but no SVGs), so the class just piggy-backs off of what I send to the renderer. From these parameters, I dynamically construct the SVGs and embed them onto the map by tying into a notify framework I'm already using. Works well for my case, and is extensible for all of my foreseeable needs (hopefully); however, I will definitely need to look into Ben's idea more...
... View more
05-28-2015
10:37 AM
|
0
|
4
|
2795
|
|
POST
|
Chris, Have a look at Embedding an iFrame into a Word document It seems like this is possible using VSTO: Visual Studio Tools for Office - Wikipedia, the free encyclopedia Office Developer Tools for Visual Studio 2012: Now Available with Office 2013 and .NET Framework 4.5 support - Visual St…
... View more
05-28-2015
10:28 AM
|
2
|
0
|
4027
|
|
POST
|
Beth, I had this problem as well when initially developing our app. I ultimately went about binding data a different way... I am interested to see if anyone has info as well.
... View more
05-26-2015
08:27 AM
|
0
|
0
|
1662
|
|
POST
|
I like this solution. We have mapping app that exposes annotation tools - although we do not allow users to save, it's something on our radar. Michael, I'm not sure of your platform, but if you happen to be using asp.net, and are hosting the map within an .aspx, you can easily call page/web methods from the map to execute server side logic, such as saving the JSON layer to SQL Server by a user id, or session id, and then later re-load it/make available when the user revisits. If this is helpful for you, I can give more information, otherwise, Tim's link mentions some info on dojo.xhr.
... View more
05-22-2015
04:52 PM
|
0
|
0
|
1125
|
|
POST
|
Thanks, Robert - this works perfectly! This also fixed an issue with an oversized identity selection box around the points after moving to the renderer, so double thanks!
... View more
05-22-2015
03:56 PM
|
0
|
0
|
984
|
|
POST
|
Hello, I am having an issue with transparency not being recognized: var renderer = new UniqueValueRenderer(defaultSymbol, "flag");
renderer.addValue("0", new SimpleMarkerSymbol().setColor(new Color([255, 0, 0, 0.75])).setSize("6").setOutline((new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([255, 0, 0, 0.75]), 2))));
renderer.addValue("1", new SimpleMarkerSymbol().setColor(new Color([0, 71, 171, 0.75])).setSize("6").setOutline((new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([0, 71, 171, 0.75]), 2))));
featureLayer.setRenderer(renderer); This results in something like this: Which does not exhibit any sort of transparency. Previously, I symbolized directly in the layer definition: "drawingInfo": {
"renderer": {
"type": "simple",
"symbol": {
"color": [0, 0, 255, 115],
"size": 4.20,
"angle": -30,
"xoffset": 0,
"yoffset": 0,
"type": "esriSMS",
"style": "esriSMSCircle"
}
}
}, Interestingly, the alpha value here seems to be using a different opacity method... not 0.0 to 1.0 - rather, 115 produces this result: I am using v3.12 and have cleared browser cache/restarted multiple times using IE and Chrome. Any ideas would be appreciated! Thanks!
... View more
05-22-2015
01:17 PM
|
0
|
2
|
4376
|
|
POST
|
I'm going to need to look into it some more to see about getting it to work in my own app. It took some trial and error to just to get it working in the node.js VM.
... View more
05-22-2015
11:58 AM
|
0
|
2
|
5596
|
|
POST
|
Woops, the title of the article was "reproject" - that's what I get for assuming an .edu would give good info! This .edu looks like it's really showing you how to reproject (follow the one for vector layers): Reprojecting Coordinate Systems Allison, if you accidentally used the define tool (sorry!) it's easy to get it back. Just use the define tool again and set it to WGS84 (the original coordinate system), but only do this if you went with my bad advice earlier!
... View more
05-22-2015
10:43 AM
|
1
|
0
|
1183
|
|
POST
|
Perfect! This looks like it's working - when I take the output in the console from my runnable app, which is: UEsDBAoAAAAAACOLtkYAAAAAAAAAAAAAAAAHAAAAbGF5ZXJzL1BLAwQKAAAAAAAji7ZGcWT+b5wAAACcAAAAEAAAAGxheWVycy9QT0lOVC5zaHAAACcKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABO6AMAAAEAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAkQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAKAQAAAAAAAAAAAAAAAAAAAAAAJEBQSwMECgAAAAAAI4u2Rj3sCVV0AAAAdAAAABAAAABsYXllcnMvUE9JTlQuc2h4AAAn CgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOugDAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADIAAAAKAAAAQAAAAApQSwMECgAAAAAAI4u2RkyD+u8/AgAAPwIAABAAAABsYXllcnMvUE9JTl QuZGJmA3MEFgIAAABBAP8AAAAAAAAAAAAAAAAAAAAAAAAAAABuYW1lAAAAAAAAAEMAAAAA/gAAAAAAAAAAAAAAAAAAAAAgRm9vICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC AgICAgICAgICAgICAgICAgQmFyICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIBpQSwMECgAAAAAAI4u2RuPBUWqPAAAAjwAAABAAAABsYXllcnMvUE 9JTlQucHJqR0VPR0NTWyJHQ1NfV0dTXzE5ODQiLERBVFVNWyJEX1dHU18xOTg0IixTUEhFUk9JRFsiV0dTXzE5ODQiLDYzNzgxMzcsMjk4LjI1NzIyMzU2M11dLFBSSU1FTVsiR3JlZW53aWNoIiwwXSxVTklUWyJEZWdyZWUiLDAuMDE3NDUzMjkyNTE5OTQzMjk1XV1QSwEC FAAKAAAAAAAji7ZGAAAAAAAAAAAAAAAABwAAAAAAAAAAABAAAAAAAAAAbGF5ZXJzL1BLAQIUAAoAAAAAACOLtkZxZP5vnAAAAJwAAAAQAAAAAAAAAAAAAAAAACUAAABsYXllcnMvUE9JTlQuc2hwUEsBAhQACgAAAAAAI4u2Rj3sCVV0AAAAdAAAABAAAAAAAAAAAAAAAAAA7w AAAGxheWVycy9QT0lOVC5zaHhQSwECFAAKAAAAAAAji7ZGTIP67z8CAAA/AgAAEAAAAAAAAAAAAAAAAACRAQAAbGF5ZXJzL1BPSU5ULmRiZlBLAQIUAAoAAAAAACOLtkbjwVFqjwAAAI8AAAAQAAAAAAAAAAAAAAAAAP4DAABsYXllcnMvUE9JTlQucHJqUEsFBgAAAAAFAAUA LQEAALsEAAAAAA== Then decode it here: Base 64 Decoder I get a .bin file. When renamed to .zip, we get a shapefile: Just remember to go through shpwrite.js and fix all of the require module paths to reflect your app, and you'll need node.js?
... View more
05-22-2015
10:33 AM
|
0
|
5
|
5596
|
|
POST
|
This should get you in the right direction: http://hilo.hawaii.edu/~sdalhelp/docs/ht_reproject_shp.pdf You will need to merge your point features into one layer (you can symbolize by different categories this way, still) and then reproject, then redo the buffers. It it's easier for you, you can also reproject each of your point layers, then redo the buffers for each one (how you have it set-up now). You could choose something like NAD83 State Plane (Feet) for Colorado (probably central) in the "Projected" folder.
... View more
05-22-2015
10:22 AM
|
0
|
2
|
1183
|
|
POST
|
Just realized "location" is a window function, so it'll error in the VM. The content looks to change when I update the points, so that's probably the file we're looking for (the encoded string written to the console is the shp zip).
... View more
05-22-2015
08:26 AM
|
0
|
0
|
5596
|
|
POST
|
Apologies if this isn't helpful, but I have a runnable app that may get closer to getting in the right direction: http://runnable.com/VV9H5mX0cJ8jPR39/shp_zip_test-for-node-js I can get it to a point where ~line 5642 in shpwrite.js logs some content to the app. The commented line above it "location.href = 'data:application/zip;base64,' + content;" is original from github, but it's throwing an error in runnable. Hope this helps! This is a feature we are looking for as well...
... View more
05-22-2015
08:18 AM
|
0
|
7
|
5596
|
|
POST
|
That's a good point about increasing vulnerability to SQL injections. I found an updated page (your link is throwing a 404) indicating the supported functions: Standardized SQL functions in ArcGIS Online—ArcGIS Online Help | ArcGIS I could see disabling this feature if the limitations were prohibitive and your application existed inside of a walled garden.
... View more
05-21-2015
12:35 PM
|
1
|
0
|
4426
|
|
POST
|
Not sure if this is helpful, but the API says you can use any valid WHERE clause SQL. So, that had me thinking... This is a really janky way of doing things, but you could technically do something like this in SQL Server to return top n: select * from myTable where myField in (select top 10 myField from myTable where myValue = 'False')) I came across this thread where others have used subqueries, so maybe it's possible this way: arcsde - How can I use a sub-query in where statement of a query in ArcGIS 10.2 Map service? - Geographic Information Sy…
... View more
05-21-2015
10:22 AM
|
1
|
3
|
4426
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-16-2020 01:25 PM | |
| 1 | 03-20-2019 09:07 AM | |
| 2 | 07-31-2015 07:31 AM | |
| 1 | 09-14-2015 12:14 PM | |
| 1 | 05-12-2015 12:04 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-27-2023
02:30 AM
|