Select to view content in your preferred language

Moving Map to fit Popup Window

880
2
05-08-2013 09:58 AM
RayJulich
Emerging Contributor
I created a map (http://wa.water.usgs.gov/projects/clovercreek/hydrographs.esri.htm) which works well except that the popup window is so large that it pops up off the map panel. I had orginally created the map with Google Maps (http://wa.water.usgs.gov/projects/clovercreek/hydrographs.htm) and when a person click on a point, the map repositions so that the entire popup window appears on the map. Is there a way to move the map so that the entire popup window is displayed?
0 Kudos
2 Replies
SteveCole
Honored Contributor
IMO, not easily, no. This thread has some suggestions/code which has helped others but I did not find that it worked for me. I wish ESRI would modify the API to handle this instead of having to come up with klugy code on your own. In my futile attempts, it created more problems than it solved.
0 Kudos
StephenLead
Honored Contributor
Ray, if the sample code linked above doesn't help, what about moving the popup completely outside of the map frame?

Here is an example showing similar charts to yours - this isn't using the popup or infoWindow, but that might be a viable approach for your site too.

Alternatively, I haven't tried this yet, but the What's New in 3.4 doc says:

Additional changes to the popup include: easier to place the popup in a container outside the map


Good luck,
Steve
0 Kudos