Select to view content in your preferred language

Strange problem with identify layer not lining up with symbols

746
2
07-28-2011 04:25 AM
DanBowerman
Emerging Contributor
Let me start with the disclaimer that I am not a formally trained GIS person, but do work on the odd web mapping application.

We've got a JSAPI 2.3 web map that displays points on a map, and clicking these points displays an infoWindow showing a little bit of data about the point. Basic stuff.

We're faced with a major issue that's been tough to debug. Clicking the symbols on the map doesn't do anything. However, clicking approximately 50 pixels above the point reveals the infoWindow.

Now the truly odd part: Sometimes this happens, but once in awhile everything is lined up correctly! Weirder still: If I'm in Chrome or IE9 with their developer consoles to check for errors (there are none reported), everything lines up correctly!

Has anyone seen this sort of behaviour, or point me in the right direction for things I should be looking at? Any insights would be very much appreciated.
0 Kudos
2 Replies
derekswingley1
Deactivated User
Can you post the HTML and CSS for your app? Normally these alignment issues are related to your markup and styles.
0 Kudos
DanBowerman
Emerging Contributor
Sorry, I didn't want to share the source because it is in many different files and sort of a mess to just paste straight into an online forum. That being said, you were correct that it was a style issue. Our map and the elements above and below it were in the collapsible Dojo TitlePanes... explicitly setting the height of these containers eliminates the "unsynced" issue that we were having. Things are working beautifully now.

Thanks very much for pointing me in the right direction!
0 Kudos