Set zoom level to Graphis layer

3391
2
07-24-2014 04:15 AM
prashantk
New Contributor III

Hi All,

 

I am displaying point data on map using graphics layer.Resultant data is quite heavy and occurs map performance issue(Map navigation operations).

 

I wanted to show data based on different zoom level, so is it possible on graphics layer or any other alternative?

 

Thanks in advance..

 

Regards,

Prahsant

0 Kudos
2 Replies
YousefQuran
Occasional Contributor

Dear Prahsant,

Did you try to use any of restriction methods? or you maybe should not retrieve all attribute data ... 

https://developers.arcgis.com/javascript/jsapi/graphicslayer-amd.html
isVisibleAtScale(scale)
setScaleRange(minScale, maxScale)

0 Kudos
m_neer
by
Occasional Contributor

You cannot set scale dependencies on graphics.   Try converting the graphics to a feature and that will allow scale dependencies. 

0 Kudos