BearPanther.com

BearPanther.com

Making the web a better place


CategoryEsri JavaScript API

ArcGIS Online

Featured

Simple editing using an ArcGIS Online web map

Posted byuserpanther on April 8th, 2013.

This post will describe simple editing using the Esri JavaScript API and an ArcGIS Online web map. sourcecode view it live There are plenty of samples  covering how to edit using the Esri JavaScript API. Where I find the documentation runs short is using the samples with a web map authored in ArcGIS Online. Lucky for […]

Blog

Featured

A Simple Way to Display Feature Info

Posted byuserbear on September 27th, 2012.

We’re always looking for ways to streamline and simplify how information from a map is displayed. To that end, I threw together a simple class to make displaying info from features on a map simpler. For now, I’m calling it a “tip”. Here’s a demo showing feature info as features are moused-over. I also set […]

Blog

Featured

Crossfit Regions – ArcGIS web map style.

Posted byuserpanther on April 11th, 2012.

CrossFit Regions – On an ArcGIS online map. This was an excuse to try out a lot of different things. Most notably an excuse to use an ArcGIS.com web map in a “real” application. Esri has the basic viewer with a lot of sample code on how to hook into the map but reading and doing are […]

Blog

Featured

Create a Feature Layer from JSON

Posted byuserbear on March 15th, 2012.

One of my favorite features of the feature layer is that you can create one from a feature collection. There’s a sample showing how to do this. I don’t know if many people realize you can do this…so that’s one of the reasons I’ve decided to blog about it. An example I published for the […]

Blog

Featured

Picture Marker Symbols from Base64 Strings

Posted byuserbear on March 12th, 2012.

The ArcGIS blog featured a post with a picture marker symbol generator a while back (full disclosure: written by a teammate of mine, Kelly Hutchins). The general focus of the post was how to use symbols from ArcGIS.com in your own apps. As an added bonus, there is an option to generate base64 strings for […]

Blog

Featured

Close a Map’s Info Window with the Escape Key

Posted byuserbear on March 12th, 2012.

One thing I find myself including in more and more apps is the ability to close a map‘s info window when the escape key is pressed. I included this in instamap as well as the MLB layer examples (web mercator and albers). The code to make this happen is straight forward: dojo.connect(map, "onKeyDown", function (evt){ […]

Blog

Featured

Add button to Esri’s default editing widget

Posted byuserpanther on March 8th, 2012.

This is a very quick post on adding a button to the default editor widget. This is straightforward after you know what you are looking for. AKA use firebug or chrome dev tools. There will not be a bunch of code and technically the button will not do anything but the idea is is to […]

Blog

Featured

Extend the esri JavaScript BasicViewer

Posted byuserpanther on March 8th, 2012.

Esri was kind enough to put out the BasicViewer for working with ArcGIS online web application. Although this may or not be designed as a starting point for developers it might be a time saver depending on your project. I believe the true intention was that it is just another view for your online application. […]

baseball

Featured

MLB teams on a map? No problem.

Posted byuserbear on March 4th, 2012.

Spring training is officially underway. To celebrate, I decided to put together a custom layer (subclass of esri.layers.GraphicsLayer) to show Major League Baseball team logos on a map. Of course, I’m using the ArcGIS API for JavaScript. Check out two demos I put together using the new layer: MLB Layer on standard basemaps MLB Layer […]

Blog

Featured

Using JSONP APIs

Posted byuserbear on February 3rd, 2012.

Everybody loves JSON. (No, I don’t have any links to back that up.) And for good reason– browsers are fluent in it, it’s easy to generate, easy to parse and lightweight enough to make it the ideal way to communicate with web services. JSONP (the P is for padding) is a well known technique to […]

Blog

Featured

Building a simple basemap switcher

Posted byuserbear on February 1st, 2012.

The ArcGIS API for JavaScript includes a basemap gallery widget. So why have I titled this post “Building a simple basemap switcher”? As great as the basemap gallery widget is, I wanted something a bit lighter for my instagram app. The idea is a well-established one:  provide a simple UI for toggling basemap layers. I […]

Blog

Featured

Using dojo classes

Posted byuserbear on January 30th, 2012.

This is part one in a … five? Let’s go with five. Five-part series wherein I talk about how I built a simple app that uses the Instagram API. In this post, I’m going to focus on the classes I used to build the app. There are only two:  bearpanther.InstagramSearch and bearpanther.BingGeocode. Hopefully the name […]

Blog

Featured

Putting Instagram on a map

Posted byuserbear on January 26th, 2012.

You know Instragram, right? Not only is the app fantastic, but they also have a pretty kick-ass API. It’s read-only but that’s all you need to start building an app with it. I spent a little time this past weekend putting together a simple single-page web app to display photos from Instagram based on a […]