[mapguide-users] Kaliopa mobile viewer with google maps as base layer

Srecko Lipovsek srecko.lipovsek at kaliopa.si
Fri Jul 3 05:40:49 PDT 2015


Hi,
OpenLayers has 2 difetent layer types - Base Layers and Overlays.

The restriction of base layer is that only one can be shown.

If you want to display those layers as Overlays you should add extra options
while you are adding your layer:

Add this to your layer:
isBaseLayer: false

Eg:
var GoogleStreet = new OpenLayers.Layer.OSM("Google Street", 
              ["http://mt1.google.com/vt/x=${x}&y=${y}&z=${z}"], {
numZoomLevels: 23, 
              sphericalMercator: true,transitionEffect: 'resize',
isBaseLayer: false }); 



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Kaliopa-mobile-viewer-with-google-maps-as-base-layer-tp5212543p5214199.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list