Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

in my app, i display few points across the map. these points have infotemplate with details in them and sometimes are quite large (around 350px height) if they have alot of information associated with it. so sometimes on smaller resolutions, either header or footer gets cutoff. is there any way to avoid this?

i am not setting up my anchors, just leaving it up to the arcgis javascript api.

map.infoWindow.show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint));

share|improve this question
    
ping: having the same problem. Did you ever resolve this? –  user14797 Feb 1 '13 at 15:28
add comment

1 Answer

We had a similar problem in one of our applications and were able to reduce the problem by putting all of our content inside a div with css height, width and overflow settings applied to make the content a consistent size.

In the script before you show the infoWindow, set the infoWindow size to a height and width that can contain the div. This will take some trial and error to handle the various browsers and resolutions your users will have.

I also found that setting the infoWindow size before AND after showing it helps to prevent the infoWindow from displaying partially off the map.

As I said, this reduce our sizing problems, but it was only when we switched to using the popup dijit that the sizing issue went away completely.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.