Hi,

The best way is to checkout the existing code and add in the changes needed to allow you to access the new type (probably both Javascript and Java changes will be needed).

GMap2 is in wicketstuff core here: https://github.com/wicketstuff/core (https://github.com/wicketstuff/core/tree/core-1.4.x/jdk-1.5-parent/gmap2-parent)

If you checkout the 'core-1.4.x' branch you can edit the files to effect the change you want.

Then you can file a ticket and attach your patch (or you can fork the repo, make your patch and register a pull request).

Regards,

Mike



As I can see in the wicket-map.js, the types are hardcoded as following:

this.getMapTypeString = function(mapType){
switch (mapType) {
case G_NORMAL_MAP:
return 'G_NORMAL_MAP';
break;
case G_SATELLITE_MAP:
return 'G_SATELLITE_MAP';
break;
case G_HYBRID_MAP:
return 'G_HYBRID_MAP';
break;
default:
return 'unknown';
break;
};
}

what I would like to do is, adding the G_PHYSICAL_MAP

is there a way to add this type to the created map by injecting javascript
code inside panel or page class?

Daku

On Thu, Apr 21, 2011 at 3:58 PM, lambdad...@gmail.com<
lambdad...@googlemail.com>  wrote:

Hi,

How can I show the terrain view in google maps using gmap2? As of now, I
can only see the hybrid and satellite views by adding the respective
controls using map.addConrol(GControl.GMapTypeControl).

I am using the 1.4.16 version of gmap and wicket.

Thanks you in advance.
Daku



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to