[OpenLayers-Users] org.gwtopenmaps.openlayers.client.layer.GMapType

www.gwtorm.com jim.pxie at gmail.com
Thu Aug 20 21:05:03 EDT 2009


I downloaded gwt-openlayers-showcase project from
http://gwt-openlayers.sourceforge.net/. It works fine util I add a new map.
I don't know why GMapType.*G_NORMAL_MAP*  returns null in the following
code:

GoogleOptions googleOptions = *new* GoogleOptions();

GMapType normalMap = GMapType.*G_NORMAL_MAP*;

googleOptions.setType(normalMap);

googleOptions.setIsBaseLayer(*true*);

Google google = *new* Google("Streets", googleOptions);

example.getMap().addLayers(*new* Layer[] {google});



I want to use Google Maps as a base layer. I appreciate it if you would
pinpoint what wrong with the above code or direct me to same examples or
articles.

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090820/394d7451/attachment.html


More information about the Users mailing list