AnsweredAssumed Answered

view.hitTest bug with multipoint geometry?

Question asked by bflessner on Mar 28, 2017
Latest reply on Mar 30, 2017 by TSolow-esristaff

At 4.3, view.hitTest() method does not work on a esriGeometryMultipoint service. I set up a demo of the problem, but I couldn't find an ESRI sample service with multipoint geometry, so you'll have to supply your own. My test map service isn't public. Anyway, insert your multipoint geometry map service url and you will see that the cursor stays as the default when hovering over a multipoint feature but works correctly when hovering over a regular point. Or maybe I'm doing something wrong? Rene Rubalcava 


JS Bin - Collaborative JavaScript Debugging 


<!DOCTYPE html>
  <meta charset="utf-8">
  <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
  <meta name="description" content="[Get started with MapView - Create a 2D map - 4.3]">
  ArcGIS API for JavaScript,
  For more information about the get-started-mapview sample, read the original sample description at

<title>Get started with MapView - Create a 2D map - 4.3</title>
      padding: 0;
      margin: 0;
      height: 100%;
      width: 100%;

  <link rel="stylesheet" href="">
  <script src=""></script>

    ], function(Map, MapView, FeatureLayer) {

      var map = new Map({
        basemap: "streets"

      var view = new MapView({
        container: "viewDiv",
        map: map,
        center: [-84.511, 39.092],
           zoom: 15
      var points = new FeatureLayer({
        url: ""
      //var multipoint = new FeatureLayer({
      view.on('pointer-move', function(evt){
        view.hitTest({x: evt.x, y: evt.y}).then(changeCursor);

      function changeCursor(response){
        if (response.results.length > 0){
          document.getElementById("viewDiv").style.cursor = "pointer";
        } else {
          document.getElementById("viewDiv").style.cursor = "default";



  <div id="viewDiv"></div>