BearPanther.com

BearPanther.com

Making the web a better place


CategoryJavaScript

JavaScript

Featured

Install Atom behind corporate proxy

Posted byuserpanther on July 8th, 2016.

So you are doing some consulting for a large company and still want to use Atom. What takes around 5 minutes on your Mac at home is now going to cost you hours of time. This guide might save you some time… 1. Uninstall anything you have done. 2. Install https://chocolatey.org/  This is the best thing that […]

JavaScript

Featured

Using jsformat with Sublime Text

Posted byuserbear on July 26th, 2014.

I can be particular about how I like stuff formatted. JavaScript is no exception. Since I use Sublime as my editor 98% of the time, I use jsformat to quickly clean up sloppy formatting. Installation is easy via package control. By default, jsformat will only run against js files but you can change that by […]

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

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 […]

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

Horizontal scrolling of a dijit.layout.ContentPane

Posted byuserbear on February 7th, 2012.

Welcome to part four of a five part series on bearpanther’s instamap. On the agenda today: horizontal scrolling of content in a dijit content pane. “WTF?”, you might be saying to yourself. Well, to put it another way, this post will talk about the ins and outs that make up the horizontally scrolling footer that […]

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 […]