dr_eyeball 16 Posted August 5, 2007 Goal: Is there a way to get the main map as a control (for the purposes of panning)? Problem: If I use ctrlMapAnimAdd for panning the map, it would work easily with a map control (eg: RscMapControl), but I want it to work with the main map too but don't know how to get the main map as a control reference. Is there a way to get the main map as a control? Or is there another way to pan the main map via scripting? Purpose: I've got a bit of a system going with pop-up menus and part of it's functionality is a simple Map Bookmarks concept: - Add bookmark (via map click), - Delete bookmark (via menu), - Go to bookmark (via menu selection, then pan map). <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">// show map location _ctrl = LOC3_display displayCtrl _IDC_Map; _ctrl ctrlMapAnimAdd [1.2, 1.00, _endPos2]; // [duration, zoom, pos] ctrlMapAnimCommit _ctrl; It's not critical, but would be handy to know. Share this post Link to post Share on other sites