Announcement

#1 2012-07-21 13:16:25

geoffschultz
Member
Marlborough, MA, USA
2012-07-01
148

[resolved] Disable "Earth" Icon on RV Maps & Earth?

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

 

#2 2012-07-22 16:28:45

geoffschultz
Member
Marlborough, MA, USA
2012-07-01
148

Re: [resolved] Disable "Earth" Icon on RV Maps & Earth?

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

 

#3 2012-07-23 02:01:29

pewe
Member
2012-03-16
439

Re: [resolved] Disable "Earth" Icon on RV Maps & Earth?

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

 

#4 2012-10-07 16:54:31

geoffschultz
Member
Marlborough, MA, USA
2012-07-01
148

Re: [resolved] Disable "Earth" Icon on RV Maps & Earth?

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)

Code:

/*
  {
    $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

 

#5 2012-10-08 09:18:02

rvelices
Piwigo Team
2005-12-29
1960

Re: [resolved] Disable "Earth" Icon on RV Maps & Earth?

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

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact