Skip to main content
removed promotional link & formatting
Source Link
Devdatta Tengshe
  • 41.6k
  • 35
  • 144
  • 263

var maxExtent = new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508); var restrictedExtent = maxExtent.clone();

var map = new OpenLayers.Map({ div: "map", projection: proj4326, displayProjection: proj900913, maxExtent: maxExtent, restrictedExtent: restrictedExtent, });

Thanks for sharing this code!

var maxExtent = new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508);
var restrictedExtent = maxExtent.clone();

var map = new OpenLayers.Map({
            div: "map",
            projection: proj4326,
            displayProjection: proj900913,
            maxExtent: maxExtent,
            restrictedExtent: restrictedExtent,
        });

var maxExtent = new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508); var restrictedExtent = maxExtent.clone();

var map = new OpenLayers.Map({ div: "map", projection: proj4326, displayProjection: proj900913, maxExtent: maxExtent, restrictedExtent: restrictedExtent, });

Thanks for sharing this code!

var maxExtent = new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508);
var restrictedExtent = maxExtent.clone();

var map = new OpenLayers.Map({
            div: "map",
            projection: proj4326,
            displayProjection: proj900913,
            maxExtent: maxExtent,
            restrictedExtent: restrictedExtent,
        });

var maxExtent = new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508); var restrictedExtent = maxExtent.clone();

var map = new OpenLayers.Map({ div: "map", projection: proj4326, displayProjection: proj900913, maxExtent: maxExtent, restrictedExtent: restrictedExtent, });

Thanks for sharing this code! kinh mat

var maxExtent = new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508); var restrictedExtent = maxExtent.clone();

var map = new OpenLayers.Map({ div: "map", projection: proj4326, displayProjection: proj900913, maxExtent: maxExtent, restrictedExtent: restrictedExtent, });

Thanks for sharing this code! kinh mat

var maxExtent = new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508); var restrictedExtent = maxExtent.clone();

var map = new OpenLayers.Map({ div: "map", projection: proj4326, displayProjection: proj900913, maxExtent: maxExtent, restrictedExtent: restrictedExtent, });

Thanks for sharing this code!

Source Link

var maxExtent = new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508); var restrictedExtent = maxExtent.clone();

var map = new OpenLayers.Map({ div: "map", projection: proj4326, displayProjection: proj900913, maxExtent: maxExtent, restrictedExtent: restrictedExtent, });

Thanks for sharing this code! kinh mat