I need to dynamically set the extent when the map loads. I have graphics that are being added to the map layer and want the extent to allow all the graphics to be shown.
Currently I am getting a min x and y value and max x and y value based off the points that are being used to add the graphics.
Then I try to use set extent with an envelope that contains the min and max values of x and y.
So am I missing something to set the bounds so that the map will show the correct portion of the map?
أكثر...
Currently I am getting a min x and y value and max x and y value based off the points that are being used to add the graphics.
Then I try to use set extent with an envelope that contains the min and max values of x and y.
So am I missing something to set the bounds so that the map will show the correct portion of the map?
أكثر...