java - Adding a label to a Point on map in ArcGIS -


i have static points on map. use code draw them:

point = geometryengine.project(longitude, latitude, mapsr);  pointgraphic = new graphic(point, symbol); graphicslayer.addgraphic(pointgraphic); 

the point drawed on map.

now want add label - show under drawn point it's longitude , latitude. can using text adding, when resize map, text placement changes. want put label - let's on bottom right point. want sensitive zooming, , binded point.

i read dinamic labels, seems complex such simple request.

how can this?

thanks.

individual graphics don't have labels, can create 2 graphics same geometry. use current symbol 1 of them. other graphic, use textsymbol, calling setoffsetx(float) , setoffsety(float) place way want.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -