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
- 13K All Categories
- 5.8K Features Discussion
- 349 Downloading Imagery
- 1.3K Elevation Data
- 385 Georeferencing Imagery Discussion
- 652 GM Script Language
- 56 User Scripts
- 115 GPS Features
- 421 Projection Questions
- 835 Raster Data
- 1.4K Vector Data
- 6.7K Support
- 181 Announcement and News
- 939 Bug Report
- 562 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 579 Other Discussion
- 132 GIS Data Sources
- 27 Global Mapper Showcase
- 244 How I use Global Mapper
- 110 Global Mapper Forum Website

