I discovered a strange behavior of Geonetwork 10.2 after the integration of the Google maps v3 as baseline layer.
Using the html5 gui the switch to Google maps is very easy
1. Add the line to the search.xml file
<script type="text/javascript" src="http://maps.google.com/maps/api/js?v=3&sensor=false"></script>
2. Modify the lines in map/settings.js
// Config for OSM based maps
if (useOSMLayers) {
GeoNetwork.map.PROJECTION = "EPSG:900913";
GeoNetwork.map.EXTENT = new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34);
GeoNetwork.map.BACKGROUND_LAYERS = [new OpenLayers.Layer.Google("Google Streets")];
}
3. debug mode
Geonetworks displays correctly the "Google Streets" layer in the small main map if we go to the url : http://localhost:8080/geonetwork/srv/eng/search?debug#fast=index&from=1&to=50
However,
1. if we load the application using http://localhost:8080/geonetwork/srv/eng/search?debug
2. and after this click on map to go to http://localhost:8080/geonetwork/srv/eng/search?debug#fast=index&from=1&to=50
then the small map displays only one tile with the Australian continent in the upper right corner???. We have this problem only with the google layer. OSM works correctly.
3. The display of the Google layer is again correct after a page refresh ???
It would be nice to have a feedback that confirms this behavior after the two modifications in search.xml and map/settings.js. Is there any workaround available? From my point of view this might be a bug???. I do not have any error messages in Firebug?
Thank’s for your help.
Rainer Zaiss