I have a div that overlays on my map and I populate dynamic graphics.
If a graphic is under my div, I need to shift it to be just outside of it.
Is there anyway to take a graphic at (XLat, YLon) and shift it to the left by 50 pixels?
You might be able to use the MapView.toScreen() method to convert the lat/lon to a ScreenPoint. Add the 50 pixels to the x,y screen coordinates and then use MapView.toMap() method to convert the adjusted screen point back to a map point and update the graphics geometry.
There's also a padding property on the MapView - .
@JohnWyant sure you just use the geometryEngines offset method.
Assuming 3.x
Same can be done in 4.x it is just the MapView that has the toMap and toScreen methods.