1

I use ArcGIS API of JavaScript to show a feature on the map. I use FeatureLayer and set definition Expression but I want to show results with maximum distance, for example show to use only the feature with distance between feature and one specified point is value.

closed as off-topic by BERA, PolyGeo May 30 '18 at 8:50

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.

  • I have 2 ways in my mind, but the first don't work I don't know why 1/ create a javascript Function who calculate the distance between two points and call this function in the expression " this method don't work I don't know why" 2/ if exist a defined method in arcGis to do this?? – Mapp May 30 '18 at 8:44
  • Welcome to GIS SE! As a new user be sure to take the Tour. For questions that involve code we ask that you show us where you are stuck with your own code by including a code snippet in your question. There is an edit button beneath your question which will enable you to do that and a {} button that enables you to format any highlighted code nicely. – PolyGeo May 30 '18 at 8:50