Giter Site home page Giter Site logo

esri-js-samples's Introduction

Samples using the ArcGIS API for JavaScript

This repository contains select samples using the ArcGIS API for JavaScript in its 3.x and 4.0 versions.

You can explore the following samples here:

GeometryEngine editing demo

This sample was featured in this blog post in a series featuring ways to use GeometryEngine in the ArcGIS API for JavaScript.

ge-demo

This app demonstrates how you can use the GeometryEngine to test spatial relationships of your features without making repeated network requests using a GeometryService. This can enhance the user experience while editing data. The edits and tests can be done client-side before they are pushed to the server.

View the code

View the live sample

Click here to view the number of network requests avoided in this app by using GeometryEngine

GeometyEngine vs. GeometryService

ge-gs

This app times GeometryEngine and GeometryService performing the same operation and compares the two. Spoiler Alert: GeometryEngine wins, by a lot.

Note that the speed difference depends on network speed, the browser and version used, as well as the number of input features in the operation. In this case, more than 500 points are buffered at one time, so the difference in speed is magnified.

View the code

View the live sample

GeometryEngine measurement demos

The following samples were featured in the blog post demonstrating the various measurement features of GeometryEngine.

Geodesic vs Planar buffer

ge-geodesic-planar-buffer

This sample shows the difference between geodesic buffer and planar buffer in GeometryEngine. Refer to this blog post for an explanation of when to use each.

View the code

View the live sample

Geodesic vs Planar length

ge-geodesic-planar-length

This sample shows the difference between geodesic buffer and planar buffer in GeometryEngine using a Web Mercator Projection. Refer to this blog post for an explanation of when to use each.

View the code

View the Web Mercator live sample

View the PCS live sample

View the Goode's Homosoline live sample

GeometryEngine overlay demo

The following sample was featured in the blog post demonstrating the GeometryEngine's overlay methods.

ge-overlay

This sample shows the difference between geodesic buffer and planar buffer in GeometryEngine using a Web Mercator Projection. Refer to this blog post for an explanation of when to use each.

View the code

View the live sample

esri-js-samples's People

Contributors

ekenes avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.