I am building a simple mapping application using the ArcGIS-JS-API 4.X. Here, is my sample code which plots a marker on the map.

], function(Map, SceneView, Geometry, Point,
    Color) {
    var map = new Map({
        basemap: "streets",
        ground: "world-elevation"
    var view = new SceneView({
        container: "viewDiv",
        map: map,
        scale: 50000000,
        center: [-101.17, 21.78]
    var point = new Point(-106.61, 35.1107);
    var pointSymbol = new SimpleMarkerSymbol();
    var pointAttributes = {
        city: "Albuquerque",
        state: "New Mexico"

    var pointGraphic = new Graphic(point, pointSymbol, pointAttributes);

Is there any way I can use the widgets(already existing in the ESRI Web App Builder for example: Add Data, Print, Filter) into my application without having to build them ?

Note : The ESRI Web Application Builder, which is build in top of ArcGIS-JS-API 3.X, comes with a lot of widgets out of the box.Here is a link to ESRI Web Application Builder: Web Application Builder

  • I'm not sure I quite understand what you want to do. WMS provides images, so you will either have one image of lots of markers, or lots of images of markers (in several layers), so are you just asking about how to load WMS layers automatically? – nmtoken Dec 7 '17 at 8:44
  • @nmtoken I figured I had framed my question in a wrong way. I have edited my question to reflect the actual idea. Can you have a second look at it now? – Kishan Kishore Dec 7 '17 at 9:48
  • 1
    In your example you are using the version 4.X of ArcGIS-JS-API. Web AppBuilder is builded on top of the 3.X version. So first of all what you have to do is think which version will be the suitable for your project. You can check the capabilities of both here, because the 3.X version does not have 3D funcitonality, which you are using in your example. You can alse check the functionality matrix to see the differences in detail. – Katah Dec 8 '17 at 7:00
  • Even though I use 3.x API for my project, can I directly use the code written for a widget into my project. Will it take a lot of effort? – Kishan Kishore Dec 8 '17 at 7:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.