|
POST
|
If I find a repeatable bug or issue in the ArcGIS JavaScript API, what are the best practices I can follow to submit an issue? It's a little harder to figure out with a not-so-open source library like this. I've thought of a few suggestions, like: A description of what you're trying to do A small public application that makes the issue repeatable, maybe something hosted on: jsBin jsFiddle CodePen Steps you've already taken to investigate the issue Any other ideas?
... View more
06-14-2016
11:52 AM
|
0
|
8
|
3969
|
|
POST
|
Your example gets most of the job done. The two issues I found were where the LayerList put the basemap at the top of the list, and sometimes the ArcGIS Online basemap title in the LayerList didn't match the title given in the web map. var layers = arcgisUtils.getLayerList(response); array.forEach(response.itemInfo.itemData.baseMap.baseMapLayers, function(l){ layers.unshift({ layer: l.layerObject }); }); If you added your basemap as a "layer from the web", and didn't save the layer to your ArcGIS Online Account, the name generated by the layer list may not match the name from the web map. Here's another patch to make that basemap layer title show. var layers = arcgisUtils.getLayerList(response); array.forEach(response.itemInfo.itemData.baseMap.baseMapLayers, function(l, index){ var layerData = { layer: l.layerObject }; if (index === 0) { layerData.layer = lang.mixin(layerData.layer, {title: response.itemInfo.itemData.baseMap.title}); } layers.unshift(layerData); }); It doesn't look pretty, but it works. JS Bin - Collaborative JavaScript Debugging
... View more
03-23-2016
07:44 AM
|
0
|
1
|
2657
|
|
POST
|
That seems to catch most of it. I also needed a way to ensure that the response.itemInfo.itemData.baseMap.title is displayed for the basemap layer name as well. If your fix covers that scenario, I'd appreciate it.
... View more
03-21-2016
02:12 PM
|
0
|
1
|
2657
|
|
POST
|
First off, I must say that I like the LayerList widget a lot. After implementing it in a few places, I noticed that maps created through ArcGIS Online web maps don't display the base map layer in the LayerList. Here's an example I cobbled together, creating the same map manually, and through a web map. LayerList Comparison: ArcGIS JavaScript API Are there plans to let users toggle the ArcGIS Online base map layer on and off through the LayerList? Some people may use satellite or aerial photography for base maps to locate items, but they may want to turn those layers off before printing or some other function. Thanks,
... View more
03-18-2016
10:08 AM
|
0
|
5
|
4550
|
|
POST
|
Oops, forgot to note the answer after further investigation. The changes to the feature class shape after merging were due to projection differences. The web map, which used ESRI base map layers, was in Web Mercator, while the edited data was in a State Plane projection. Once base maps were switched out so both the map and the edited layer were in the same State Plane projection, gaps showed much less frequently (apart from accidentally dragging parcels a pixel or two over while selecting them). Word to the wise: Mind your projections, especially while editing.
... View more
01-28-2016
09:55 AM
|
0
|
0
|
1078
|
|
DOC
|
ArcGIS Server provides a convenient REST interface for map and feature services that you can view in your browser. Sometimes, however, you want more information without navigating between pages. Are you looking for the map service with that feature or field that needs to be replaced? Did you ever wonder why some of the features aren't showing up on your web map? Ever wish you could see data on a list of map services, like map projection or a list of features? Ever forgot a field name while you were constructing a query string on a feature service endpoint? In this talk, we'll look at an open-source project I made available on Github to help you navigate, inspect, and troubleshoot your map services. The project uses JavaScript bookmarklets, tiny scripts of JavaScript code that are called from your browser bookmarks, to interact with the REST services and present more detail. We'll perform a live demonstration against public map services to show how the tools work, what information you can collect, and what you can do with that information. We'll also talk about how you can contribute to the project, too. raykendo/ESRI_REST_Diagnostics · GitHub
... View more
01-05-2016
09:18 AM
|
15
|
1
|
2115
|
|
POST
|
It's two years later, and we're seeing the same issue. At the bottom of the page, the Save and clear buttons are replaced with a concatenated list of parameters (starting with ('fjsontoken'...)
... View more
10-07-2015
02:53 PM
|
0
|
0
|
1227
|
|
BLOG
|
Robert's right, it's not that complicated. The only gotcha issue you might run into depends on whether you set Web AppBuilder to run as a Windows service. If so, you'll need to follow the direction at the Get started—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers page to uninstall that windows service with npm before before starting 1.2.
... View more
09-10-2015
01:37 PM
|
1
|
0
|
4724
|
|
BLOG
|
You also might want to mention that some of the new themes will have a significant effect on the look and usability of your custom widgets. For example, the Dart Theme changes the widgets to dark grey with white letters. More importantly, it applies the text color rule with an !important tag that's difficult to override. If you use any dijit or dgrid UI components within your widgets, you might have readability issues when that component shows a white background with the new white text. See the following link for an example. Network Trace - Legibility with 1.2 Dart/Launchpad Themes · Issue #236 · Esri/solutions-webappbuilder-widgets · GitHub
... View more
08-13-2015
11:17 AM
|
1
|
0
|
4724
|
|
POST
|
Hi Sarah, After trying a few different methods, the best way I've been able to implement what you're describing without an onDrawBegin event is to use a dojo/on.pausable() event that goes off on the map.onmousedown event, pause it, and only unpause it when the draw-end event occurs. Here's how it would look: require([..., "esri/map", "dojo/on", "esri/toolbars/draw", ...], function (..., Map, dojoOn, DrawToolbar, ...) { ... var map = new Map("mapdiv", {...}); var drawtoolbar = new DrawToolbar(map, {...}); ... var clearGraphicsHandler = dojoOn.pausable(map, "mousedown", function () { // clear the map graphics layer map.graphics.clear(); // test if you can pause the clearGraphicsHandler after the event is called. if (clearGraphicsHandler & typeof clearGraphicsHandler.pause === "function") { clearGraphicsHandler.pause(); } }); // pause it for now clearGraphicsHandler.pause(); ... dojoOn(drawtoolbar, "draw-end", function (evt) { // do something to add the drawing on the map. ... // resume the clearGraphicsHandler when you touch the map to draw again. clearGraphicsHandler.resume(); }); ... // remember if you switch away from this tool, and want to preserve the current graphic, be sure to call clearGraphicsHandler.pause(); ... }); There's more things you could do to make this more robust. Hopefully, this helps.
... View more
05-20-2015
08:05 AM
|
1
|
0
|
589
|
|
POST
|
Yeah, that's one way to do it. I explicitly assigned the box-sizing to content-box for my app. Thankfully there's more than one way to skin that cat. I just wanted the information out there in case others ran into the same issues. .esriColorPicker { box-sizing: content-box; }
... View more
05-12-2015
07:02 AM
|
0
|
0
|
884
|
|
POST
|
I've put this on here, because I have no idea where else to file bug reports or issues with esri dijits. I've incorporated the esri/dijit/ColorPicker from the ArcGIS JavaScript API (v. 3.13). When viewing the application, I noticed a weird issue with the size/border of the ColorPicker. I attempted to recreate the issue using JSFiddle (ESRI - dijit - ColorPicker - JSFiddle)). The funny thing was, when I viewed the results, everything looked fine, as you can see when you follow the link. So I looked back through my application, trying to find out what the difference was. Digging into the CSS, I found that the CSS box-sizing property for all items in my application was set to border-box, while without it, the css box-sizing defaults to content-box. When I applied the box-sizing of border-box to the .esriColorPicker class, I was able to recreate the issue. ESRI - dijit - ColorPicker (with error) - JSFiddle In order to keep the width of the ColorPicker dijit from messing up, perhaps they should assign a box-sizing property to its style. Like I said, I didn't know where else to post this information.
... View more
05-11-2015
01:48 PM
|
0
|
2
|
5045
|
|
POST
|
We've put together a WAB viewer that shows the content of a separate Pictometry Connect viewer page. We use lat/long in the web requests to reposition the viewer. I'd like to see if you pull off something more integrated.
... View more
03-19-2015
07:24 AM
|
0
|
0
|
5290
|
|
POST
|
Besides setting the width and height of the map, the width and height of each parent element must be set, from the map div all the way up to HTML. Leaving any layer height out will cause the map height to reset to 400px. Same goes for width.
... View more
03-11-2015
07:21 AM
|
0
|
0
|
4986
|
|
POST
|
It looks like you're interacting with the map before it has time to load. the map's load event fires after it has successfully loaded at least one layer (usually the base layer). When you create the map and add layers, you may want to move any other map actions, such as getting or setting extent, to a function that fires after the map's "load" event. var map = new Map("mapdiv", {...}); var layer = new ArcGISDynamicMapServiceLayer(...); map.addLayer(layer); if (map.loaded) { doSomething(); } else { map.on("load", doSomething); }
... View more
02-12-2015
11:06 AM
|
0
|
0
|
1686
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-05-2013 11:45 AM | |
| 1 | 05-20-2015 08:05 AM | |
| 2 | 03-24-2017 07:11 AM | |
| 2 | 03-28-2018 07:45 PM | |
| 1 | 07-03-2018 07:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|