Select to view content in your preferred language

esri.toolbars.Draw - points drawn in wrong position

821
1
Jump to solution
07-12-2012 07:24 AM
PeterBridger
Emerging Contributor
I'm working on a project which is integrating ESRI ArcGIS with the .net Umbraco CMS.

We have a fairly fully functioning data editor, which allows for spatial objects to be created for content on the website. However the biggest remaining issue is that when point, polylines or polygons are drawn on the map the points are drawn in the wrong place.

For instance if I click on the map to draw a point, it won't appear where the mouse is, but instead about 100 pixels lower.

I'm guessing it's to do with either:

  • The browser window Y scrollbar not being used in position calculations

  • The map being inside a frame (Which is how the Umbraco admin works)

  • Problem with use of position:absolute on map DIV

Does anyone have any experience of a simular issue? Is it a bug or something I'm not doing correctl

0 Kudos
1 Solution

Accepted Solutions
derekswingley1
Deactivated User
Try calling map.resize() and/or map.reposition().

View solution in original post

0 Kudos
1 Reply
derekswingley1
Deactivated User
Try calling map.resize() and/or map.reposition().
0 Kudos