zoom to geometry query result , but i want clearly zoom

2501
1
02-01-2016 02:10 AM
Hishoshr
New Contributor

When click on list of result query to zoom to the geometry of facility , the zoom obtain  is very very  close to facility where the basmap (streets )doesnot obtain clearly .

how I  can to obtain zoom is very clearly than this , that decrease the zoom to obtain the facility with  streets

I use the function map.zoomto (geometry1)

""for loop in onQueryTaskStatusChanged  :

geometry1 = queryResult.graphics[count].geometry

The result obtained on the attached photo :

zoom function.png

I want the zoom result obtain as the attached photo ( I want to decrease the zoom to obtain the streets around facility ) :

result.png

0 Kudos
1 Reply
by Anonymous User
Not applicable

Hi Hisho

Perhaps related to:

map.zoomTo doesn't keep entire geometry on screen

Where the zoomTo function seems to not take the screen ratio/size into account.

No solution that I know of yet. Will keep an eye on this thread in case someone has an answer!

Cheers,

-Paul

0 Kudos