POST
|
Robert - I've been experiencing the same issue and tride adding that parameter to the end of my URL, but mouse-wheel scrolling still doesn't work. Can you post a link to the URL you used? Maybe I'm doing something wrong.
... View more
04-24-2015
10:24 AM
|
0
|
2
|
808
|
POST
|
Sean - were you able to duplicate my issue with my dataset?
... View more
03-06-2015
11:49 AM
|
0
|
1
|
1156
|
POST
|
Hi Sean, See the attached. I was able to duplicate this issue (although not 100% of the time) creating a brand new dataset, too. When you look at the shapefiles, the polygon will already more or less match up with the points around the perimeter. Drag one of the vertices of the polygon away from a point, then back to it with snapping from a small-ish scale; then zoom in and see how close you are to the point. In my case, more often than not the vertex does not actually match up with the point.
... View more
03-02-2015
10:11 AM
|
0
|
0
|
1156
|
POST
|
Thanks Naime - but I want to remind you I'm using ArcGIS Pro, not ArcMap I've never had issues with snapping in ArcMap (even without using Topology). Something's fishy in ArcGIS Pro.
... View more
03-02-2015
06:48 AM
|
1
|
0
|
1156
|
POST
|
I believe you're thinking of the Snapping geoprocessing tool - that's not what I'm using here. I mean the actual snapping tool on the editing toolbar. I tested this again with a brand new dataset and it seems that the snapping tool (on the editing toolbar) is a bit unpredictable. Try it yourself: Create a point file and a polygon file. Add some points to the point file, and then using snapping create a polygon file using those points as vertices. When I did this, the polygon's vertices lined up with the points perfectly. Now, select the polygon and edit its vertices. Drag one of the vertices away from the point, then back again using snapping. In some cases, the vertex will snap perfectly back to the point; in others, it will snap close to it relative to your current scale. I tried this once zoomed out to a scale of 1:1,000,000 and the vertex was offset from the point by about a half mile which is completely unacceptable. I wasn't able to figure out why sometimes it snapped back perfectly and sometimes it only snapped close to the point. I tried having snapping only enabled on the point feature, and only Point Snapping enabled and the problem would still happen. I never had any issues with snapping in ArcMap - I can't imagine it was by design in ArcPro that snapping only gets you to the general area.
... View more
03-02-2015
06:47 AM
|
0
|
4
|
1156
|
POST
|
I've been editing the vertices of some polygon layers to snap them to a point layer. I turned on snapping, select the vertex of the polygon I want to move, click and move it towards the point and my cursor does "snap" to the point feature. The vertex does move close to the point feature, but if I zoom in closer I can see that the vertex and the point are not actually coincident. It seems I have to zoom in to a 1:1 scale to get the vertex snapped appropriately. Has anyone else experienced this issue?
... View more
03-02-2015
06:03 AM
|
0
|
10
|
5335
|
POST
|
Is there something wrong with the Export Web Map Task hosted on utility.arcgisonline.com? I had been using that for my web app's printing service but it doesn't seem to be working anymore; I get an error in Firebug that just says: [object Object] .cache["dojo/errors/create"]/</</r()/3.8/ (line 221) h() I tried switching to the export web map task hosted on sampleserver6.arcgisonline.com and that one works, so I'm pretty sure it's not something in my code.
... View more
11-18-2014
08:35 AM
|
0
|
0
|
384
|
POST
|
Thanks for the reply Michelle. I'm running 10.2 Service Pack 0. I wonder if this is just a bug that's been falling through the cracks? One would think the attributes would update automatically.
... View more
08-20-2014
09:13 AM
|
0
|
1
|
447
|
POST
|
I've been using the Review Attributes tool to ensure consistency among different records in a large shapefile. If I were to edit a feature that contains a spelling error, that unique value still shows up in Review Attributes. The only way I've found to get the changes to be reflected is to close down ArcMap entirely, reopen it, and begin again. This is a very inefficient way of going through my attributes. Is there a quicker way?
... View more
08-20-2014
07:20 AM
|
0
|
3
|
3271
|
POST
|
I figured that had something to do with it. Thanks, Ken!
... View more
03-21-2014
11:27 AM
|
0
|
0
|
428
|
POST
|
The TOC is being loaded twice, for some reason. I got rid of the entire toc.on section, and it only loaded once. Strangely, I also got rid of toc.startup() and again, the TOC loaded but only once. I'm not familiar with Nilu's TOC so I don't know exactly how it works, but if the things within the toc.on function aren't necessary, it looks like you can just get rid of those and the TOC will be fine.
... View more
03-21-2014
11:25 AM
|
0
|
0
|
1055
|
POST
|
Hi, I'm creating a map that allows users to select fish species and fish pathogen types to query out features in a Feature Layer that contain information on testing for that species and pathogen type. Certain species have not been tested for certain pathogens, so in the event of the query not returning any results, I want to add a message that lets the user know that that species/pathogen combination have not been tested (and thus, no features will be displayed on the map). I thought to do so by creating an if statement that fires if the length of fl.graphics is 0. However, the length is ALWAYS coming up as 0, even if the query does return features. If I add a console.log(fl.graphics) to the function, firebug shows me a blank array ("[ ]"); but if I click on those empty brackets, it does expand to show the graphics in the layer (if any are present). Similarly, if you just inspect the fl object, you can expand the graphics property to see the contents of the array. I'm stumped as to how to get the document to recognize the true length of the array. See my code below: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title>Fish Pathogens</title> <link rel="stylesheet" href="http://js.arcgis.com/3.7/js/dojo/dojo/resources/dojo.css"> <link rel="stylesheet" href="http://js.arcgis.com/3.7/js/dgrid/css/skins/tundra.css"> <link rel="stylesheet" href="http://js.arcgis.com/3.7/js/dojo/dijit/themes/tundra/tundra.css"> <link rel="stylesheet" href="http://js.arcgis.com/3.7/js/esri/css/esri.css"> <style> html, body { height: 100%; width: 100%; margin: 0; padding: 0; overflow: hidden; } td { padding:3px; } #BasemapToggle { position: fixed; top: 3%; right: 20px; z-index: 50; } #container { height: 100%; visibility: hidden; } .esriPopup .titlePane { font-weight:bold; font-size: 14px; line-height:30px; background-color:#0893CF; } .esriPopup .titleButton.maximize { top:10px; } .esriPopup .titleButton.close { top:7px; } .action.zoomTo { display:none; } </style> <script src="http://js.arcgis.com/3.7/"></script> <script> var fl; require([ "dojo/ready", "dgrid/OnDemandGrid", "dgrid/Selection", "dojo/store/Memory", "dojo/_base/array", "dojo/dom-style", "dijit/registry", "esri/map", "esri/layers/FeatureLayer", "esri/tasks/QueryTask", "esri/tasks/query", "esri/dijit/BasemapToggle", "esri/renderers/UniqueValueRenderer", "esri/symbols/SimpleLineSymbol", "esri/symbols/SimpleFillSymbol", "dojo/_base/Color", "dojo/_base/declare", "dojo/number", "dojo/on", "dojo/parser", "dijit/layout/BorderContainer", "dijit/layout/ContentPane" ], function( ready, Grid, Selection, Memory, array, domStyle, registry, Map, FeatureLayer, QueryTask, Query, BasemapToggle, UniqueValueRenderer, SimpleLineSymbol, SimpleFillSymbol, Color, declare, dojoNum, on, parser ) { ready(function() { parser.parse(); map = new Map("map", { basemap: "gray", center: [-77, 38.9], zoom: 9 }); var toggle = new BasemapToggle({ map: map, basemap: "satellite" }, "BasemapToggle"); toggle.startup(); pathogenService = "http://services.arcgis.com/njFNhDsUCentVYJW/arcgis/rest/services/FishPathogens/FeatureServer/0"; outFields = ["*"]; var infoTemplate = new esri.InfoTemplate(); infoTemplate.setTitle("${NAME}"); infoTemplate.setContent( "<table border='0', width='100%'>" + "<tr><td width='50%' width='100%' valign='top'>Species:</td><td width='50%' valign='bottom'> ${SPECIES}</td></tr>" + "<tr><td width='50%' width='100%' valign='top'>Years Tested for LMBV:</td><td width='50%' valign='top'> ${LMBV_YEARS}</td></tr>" + "<tr><td width='50%' width='100%' valign='top'>Years Tested for Whirling (Pre-2000):</td><td width='50%' valign='top'> ${WD_YR_bf00}</td></tr>" + "<tr><td width='50%' width='100%' valign='top'>Years Tested for Whirling (Post-2000):</td><td width='50%' valign='top'> ${WD_YR_af00}</td></tr>" ); map.infoWindow.resize(425,225); var highlight = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_CIRCLE, 12, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([0,255,255]), 3), new dojo.Color([50,50,255,0])); var fl = new FeatureLayer(pathogenService, { id: "participants", mode: esri.layers.FeatureLayer.MODE_ONDEMAND, outFields: outFields, infoTemplate: infoTemplate }); fl.on("click", function(e) { fl.clearSelection(); map.graphics.clear(); }); fl.on("mouse-over", function() { map.setMapCursor("pointer"); }); fl.on("mouse-out", function() { map.setMapCursor("default"); }); dojo.connect(map.infoWindow, "onHide", function() { map.graphics.clear(); }); map.addLayers([fl]); map.on("load", function( evt ){ domStyle.set(registry.byId("container").domNode, "visibility", "visible"); }); document.getElementById('applyFilter').onclick = function pathogenFilter() { document.getElementById('noMatches').innerHTML = ''; speciesType = document.getElementById("speciesFilter").value; pathogenType = document.getElementById("pathogenFilter").value; var defaultSymbol = new SimpleFillSymbol().setStyle(SimpleFillSymbol.STYLE_NULL); defaultSymbol.outline.setStyle(SimpleLineSymbol.STYLE_NULL); var renderer = new UniqueValueRenderer(defaultSymbol, pathogenType); renderer.addValue("N/A", new SimpleFillSymbol().setColor(new Color([204, 204, 204, 1]))); renderer.addValue("NEGATIVE", new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol(SimpleLineSymbol.STYLE_NULL), new Color([7,172,242,1]))); renderer.addValue("POSITIVE", new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol(SimpleLineSymbol.STYLE_NULL), new Color([255,0,0,1]))); fl.setDefinitionExpression("SPECIES LIKE'%" + speciesType + "%' AND " + pathogenType + " <> 'N/A'"); console.log(fl); if(fl.graphics.length === 0) { document.getElementById("noMatches").innerHTML = "No testing has been done for the selected species/pathogen."; } fl.setRenderer(renderer); } }); }); </script> </head> <body class="tundra"> <div id="container" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design: 'headline', gutters: false, design: 'sidebar', liveSplitters:true"> <div id="map" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region: 'center', splitter:true" style="z-index:2"> <span id="BasemapToggle"></span> <span id="Filter" style="position:fixed; left:20px; z-index:1; height:115px; bottom:50px; background-color:#FFFFFF; border:2px solid #666666; border-radius:6px; font-size:18px; padding:5px"> <p style="margin-top:2px">Sort by:</p> <p style="margin-top:-25px; text-indent:10px; font-size:12px">Species: <select id='speciesFilter'><option value=''''>Select a Species</option><option value='Alewife'>Alewife</option><option value='American Shad'>American Shad</option><option value='Blueback Herring'>Blueback Herring</option><option value='Brook Trout'>Brook Trout</option><option value='Brown Trout'>Brown Trout</option><option value='Chain Pickerel'>Chain Pickerel</option><option value='Channel Catfish'>Channel Catfish</option><option value='Hickory Shad'>Hickory Shad</option><option value='Largemouth Bass'>Largemouth Bass</option><option value='Other Sunfish'>Other Sunfish</option><option value='Rainbow Trout'>Rainbow Trout</option><option value='Smallmouth Bass'>Smallmouth Bass</option><option value='Suckers'>Suckers</option><option value='Yellow Perch'>Yellow Perch</option></select><br></p> <p style="margin-top:-10px; text-indent:10px; font-size:12px">Pathogen: <select id='pathogenFilter'><option value=''''>Select a Pathogen</option><option value='LMBV'>LMBV</option><option value='WD_bf_2000'>Whirling Disease (tested before 2000)</option><option value='WD_af_2000'>Whirling Disease (tested after 2000)</option></select> <p style="margin-top:-7px; font-size:12px"><a href="javascript:{}" id="applyFilter">Apply filter</a> <span id="noMatches" style="position:fixed; left:100px; bottom:55px; width: 265px; background-color-:#FFFFFF; border:0px; z-index:999; color:#FF0000"></span> </span> </div> </div> </body> </html> Any help would be appreciated!
... View more
03-21-2014
10:52 AM
|
0
|
2
|
1678
|
POST
|
It looks like custom styles are not supported in ESRI's WMSLayer implementation, so your only option is likely to create a custom WMS Layer type that you can use instead. This will allow you to manually set the STYLES parameter. See this sample: https://developers.arcgis.com/javascript/jssamples/layers_custom_wms.html Thanks. I tried messing with that and my result was strange. I got the layer to show up on the map, but as a small, static image; when I would zoom in/out, the layer wouldn't reflect the zoom changes. I copied all the parameters exactly as they were called from simply adding it as a regular WMS layer, but nothing seemed to help.
... View more
02-24-2014
04:17 AM
|
0
|
0
|
2288
|
POST
|
If you have Firebug installed, once you open the map you can go into the Firebug console and type map.extent; this will return the extent of the visible portion of the map.
... View more
02-21-2014
10:03 AM
|
0
|
0
|
578
|
Title | Kudos | Posted |
---|---|---|
1 | 03-02-2015 06:48 AM | |
1 | 07-01-2015 07:35 AM | |
1 | 07-01-2015 11:16 AM | |
1 | 01-21-2020 07:34 AM | |
1 | 03-08-2016 11:30 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|