For anyone who wants to add in the terrain map type to the gmaps module:

gmap_settings_ui.inc line 133:

    '#options' => array('Map' => t('Map'), 'Satellite' => t('Satellite'), 'Hybrid' => t('Hybrid'), 'Terrain' => t('Terrain')),

gmap_macro_builder.module line 91:

    '#options' => drupal_map_assoc(array('Map', 'Satellite', 'Hybrid', 'Terrain')), 

gmap.js around line 200 add in:

if(obj.vars.maptype=='Terrain') type = G_PHYSICAL_MAP;
if(type==G_PHYSICAL_MAP) obj.vars.maptype = 'Terrain';

Then you can choose Terrain in the config page

Comments

kuldip zala’s picture

hi,

i apply all the things as above describe.

I also got in config page.
if i can make it default in config page then its display map type of 'Terrain'.

But i can't get 4th option of 'Terrain' when view a whole map.
It gives a choice to user for choosing 3 types not 'Terrrain'.

Plz help. Thnks in advance.

jhaggenburg’s picture

this could be done with the following in gmap.js, after line 124:

var map = new GMap2(elem);

//Add this:
map.addMapType(G_PHYSICAL_MAP);

I never made a patch, but I will when I can find some time for it!

bdragon’s picture

Status: Active » Fixed

Latest snapshot has revamped baselayers support.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.