Reputation: 4870
i am getting problem to put OpenLayer which is coming from my Minesotta Map Server on OSM layer as a Base Layer.
when i use google map as a base layer than it works fine !.
so is there possible to work as osm as a base layer and OpenLayer as overlayer.or this combonation is possible or not
Upvotes: 0
Views: 1686
Reputation: 791
If I well understood your question...you need to set allOverlays: true link1, link2
var options = {
projection: mercator, //EPSG:3785/900913
displayProjection: geographic, //EPSG:4326
theme: null,
maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34),
maxResolution: 156543.0339,
units: 'm',
controls: [],
numZoomLevels: MAX_ZOOM_LEVEL,
allOverlays: true
};
OpenLayers.Util.DEFAULT_PRECISION = 18;
mp = new OpenLayers.Map('map', options);
Upvotes: 1