10,575 reputation
12452
bio website swingley.appspot.com
location San Diego, CA
age 32
visits member for 4 years, 3 months
seen 6 hours ago

@derekswingley

Web developer.


Nov
16
awarded  Enlightened
Nov
16
awarded  Nice Answer
Nov
6
comment How to flash a graphic in JSAPI using AMD
Probably better to use a gist if you only need to share code: gist.github.com/swingley/f4d98920bcc221b929b0 You're loading Esri and Dojo modules using require (lines 6-31) but you use globals throughout your code, see lines 54-63 where you use esri.* and dojo.*. You can technically mix AMD and legacy but it's bad form and adds unneeded complexity. Plus your code will break when the legacy stuff goes away and AMD is the only option. Are you able to post a full example rather than just your JS? A full page is much easier to debug than just JS.
Nov
5
answered How to flash a graphic in JSAPI using AMD
Nov
5
revised How to flash a graphic in JSAPI using AMD
removed arcobjects and arcgis server 10.2 tags since neither apply to this question
Oct
28
awarded  Nice Answer
Oct
24
answered Redraw info window after centering map on click (ESRI Javascript API)
Oct
19
awarded  javascript
Oct
18
answered Why should I use the AMD style deceleration in ArcGIS JS API?
Oct
16
comment How to Use Custom Basemaps with BasemapToggle widget?
try this: jsbin.com/iFakeLa/5
Oct
16
comment How to Use Custom Basemaps with BasemapToggle widget?
edit your question to include your code or the URLs for the services you want to use? Maybe I can sort it out for you.
Oct
16
comment How to Use Custom Basemaps with BasemapToggle widget?
Adding a comment here so you can check out my edited answer below showing how to use a custom basemap with the basemap toggle.
Oct
14
comment Custom ArcGIS GraphicsLayer (JavaScript)
"this project requires the use of GraphicsLayers because I need to be able to toggle the visibility of layers" – both feature layers and graphics layers have show() and hide() methods that you can use to toggle visibility. You're mixing AMD and legacy global references throughout your code which doesn't make things any easier. Please break this down in to a simpler case. For instance, can you retrieve data from your server and put it on a map without creating a module?
Oct
14
revised Custom ArcGIS GraphicsLayer (JavaScript)
re-formatted first code sample
Oct
14
comment How to Use Custom Basemaps with BasemapToggle widget?
@D.E.Wright updated to show an example of how to customize the widget to use custom maps
Oct
14
revised How to Use Custom Basemaps with BasemapToggle widget?
provided example of how to customize the maps used in the basemap toggle widget
Oct
11
answered How to Use Custom Basemaps with BasemapToggle widget?
Oct
11
comment How customize GeoRSS icon in ArcGis JS API?
Please take a look at the info on accepting answers here: meta.gis.stackexchange.com/a/763/124
Oct
11
awarded  Informed
Oct
10
answered How customize GeoRSS icon in ArcGis JS API?