Tag JavaScript

Query All Features from a Feature Service

When querying an ArcGIS Feature Service, there is typically a maximum number of features (records) that will be returned from any query – usually set to 1000. Normally, if you wanted to query for all the features in the service, you would need to make multiple REST calls to get them all. Learn how to use the package query-all-features to do this with only one REST call.

Import Mapping Libraries from a URL

How to use third-party JavaScript libraries, like the ArcGIS Maps SDK for JavaScript, directly via URL.

Query to Get All Features in the ArcGIS Maps SDK for JavaScript

When you’re querying a Feature Service in the ArcGIS Maps SDK for JavaScript, there’s typically a maximum number of features (records) that will be returned from any query – usually set to 1000. If you want to get all the features in the service, you’ll need to make multiple queries to the service. Here’s how to do it.

Load Protocol Buffers in the Browser

While working on a project recently I was inspired to learn a bit more about Protobuf files. I especially wanted to know how you can load them directly in a browser.

Use the ArcGIS Maps SDK for JavaScript with Svelte

My colleague Jacob and I have really been enjoying using the Svelte JavaScript Framework while building mapping web apps with the ArcGIS Maps SDK for JavaScript. Here are a few links and resources that I’ve collected.

ArcGIS JavaScript API 4 - Hover Feature Event

The way hover events work in the JavaScript API 4 vs 3 is a bit different. In the 3.x API, you could use the “mouse-move”, “mouse-over”, and “mouse-out” events on the Feature Layer object itself. But in the 4.x API, you want to use the “pointer-move” event of the MapView (or SceneView). Here are some examples.

GitHub CSV Import and Export

A new tool to import and export GitHub issues. To import, all you need to do is get your issues into a simple CSV format including title, description, and the tags that you want, and the script will do the rest.

Esri Dev Summit 2016

I’m excited to be at the Esri Dev Summit this year. I’ll be giving a few talks - the details and links to the resources for those talks are listed below. Hope to see you there!

Custom Basemap Toggle with ArcGIS JavaScript API 4 View Models

I am super excited about the ArcGIS Maps SDK for JavaScript 4.0 beta. One of the exciting things is developer friendly widgets which allows us to write our own presentation layer, and still use the logic of the core widget (the “View Model”). For example, the View Model for the Basemap Toggle Widget allows you to call toggle() and get the current/secondary basemaps, all from your own module that implements the view.

This Week in Esri GitHub

Esri has opened up a bunch of repositories on GitHub this past week.