Is there anyway to disable the "Earth" function on RV Maps & Earth? I have several reasons for wanting to do so:
1) I find the display using the Maps function much more usable. I don't want to confuse my viewers by having both.
2) Once the KML file is downloaded, you have to click on the downloaded file within the "Places" to get it to display.
3) I get errors such as "http://www.geoffschultz.org/photos/plugins/rv_gmaps/kml.php?/category/3 Error when parsing file" when opening the KLM file and/or zooming in on a section.
4) Earth appears even when Google Earth is not installed.
Note that I'm running 2.4.1.
Thanks, Geoff
Last edited by geoffschultz (2012-07-22 16:29:37)
Offline
To answer my own question, comment out the following lines in rv_gmaps\template\earth_kml.tpl
/*
$template->concat( 'PLUGIN_INDEX_ACTIONS' , "\n<li>".sprintf(RVM_ACTION_MODEL,
$kml_url, $link_title, ' type="application/vnd.google-earth.kml+xml"', 'globe', 'earth'
).'</li>');
*/
Offline
Useful mod - except I don't have that line in earth_kml.tpl
Strange!!!
Last edited by pewe (2012-07-23 02:08:20)
Offline
It seems that something changed in the versions following my post. The correct file to edit is rv_gmaps/main.inc.php
Comment out the following code (as shown below)
/* { $kml_url = rvm_duplicate_kml_index_url( array(), array('start') ); $link_title = sprintf( l10n('opens %s in Google Earth'), strip_tags($page['title']) ); $template->concat( 'PLUGIN_INDEX_ACTIONS' , "\n<li>".sprintf(RVM_ACTION_MODEL, $kml_url, $link_title, ' type="application/vnd.google-earth.kml+xml"', 'globe', 'earth' ).'</li>'); } */
Note that it would be very nice if this were configurable via the plugin.
-- Geoff
Last edited by geoffschultz (2012-10-07 16:56:05)
Offline
I think I will take out that icon from the index page in the next plugin version ... There are too many icons already and it can still be reached from the maps page ...
Offline