Scripting in an automatic zoom level when importing a KML file?
Currently I'm running a start-up Global Mapper work space script that loads online world imagery and then importing an overlaying track-line as a KML file. Is it possible to add a zoom command to view and center the map over the imported KML? Or a way to bound the view to the imported KML file? And yes, I want to zoom into the KML track no matter the size of the layer compared to the base map. Thanks!
Tagged:
Answers
-
Thanks for the input! That would've been perfect but it seems the layer bounding options are not available to the general IMPORT command (they are available only to a few import commands: IMPORT_OSM_TILE, IMPORT_SPATIAL_DB and IMPORT_WMS). Thus I'm still working on a work around to this problem. Any other ideas? Thanks again!
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website