Index: trunk/extensions/Maps/OpenLayers/OpenLayerFunctions.js |
— | — | @@ -48,7 +48,8 @@ |
49 | 49 | |
50 | 50 | } |
51 | 51 | |
52 | | - addMapBaseLayers(map, mapTypes); |
| 52 | + // Add the base layers |
| 53 | + for (i in mapTypes) map.addLayer(mapTypes[i]); |
53 | 54 | |
54 | 55 | // Layer to hold the markers |
55 | 56 | var markerLayer = new OpenLayers.Layer.Markers('Markers'); |
— | — | @@ -104,23 +105,7 @@ |
105 | 106 | |
106 | 107 | return false; |
107 | 108 | } |
108 | | - |
109 | | -/** |
110 | | - * Adds all map type base layers to a map, and returns it. |
111 | | - */ |
112 | | -function addMapBaseLayers(map, layers) { |
113 | | - // Variables for whowing an error when the Google Maps API is not loaded |
114 | | - var googleAPILoaded = typeof(G_NORMAL_MAP) != 'undefined'; |
115 | | - var shownApiError = false; |
116 | 109 | |
117 | | - var isDefaultBaseLayer = false; |
118 | | - |
119 | | - // Add the base layers |
120 | | - for (i in layers) map.addLayer(layers[i]); |
121 | | - |
122 | | - return map; |
123 | | -} |
124 | | - |
125 | 110 | function getOLMarker(markerLayer, markerData, projectionObject) { |
126 | 111 | var marker; |
127 | 112 | |