AnsweredAssumed Answered

Custom map center

Question asked by endlessdsire on Mar 2, 2018
Latest reply on Mar 13, 2018 by htudosieesri-ca-esridist

Hello.

I want to know if there is a way to move the center of the map when querying a little bit.

Iam querying some feature (just 1 result) and im doing this for showing it in the center of the map.

 

    map.centerAndZoom(featureSet.features[0].geometry.getExtent().getCenter(),20);

 

In my app when i do this i have a problem on visualization, thats why i want to move it to the right a little bit.

 

This is what i obtain: (See the blue line on the screen)

The red container is over the map, thats why when i do the center i got that.

 

 

this is what i want to get:

 

Thanks in advice

Outcomes