> var nobase = new OpenLayers.Layer("No Basemap",{isBaseLayer: true,
> 'displayInLayerSwitcher': true});
>
This method worked perfectly, thanks very much. I used maxExtent and
maxResolution to set my desired limits.
M.
On Mon, Jul 19, 2010 at 7:57 PM, Lennox Antoine wrote:
> When you intiali
When you intialize your map, pass it a "restrictedExtent" so that it will
only show your area of interest. See this example :
http://openlayers.org/dev/examples/restricted-extent.html
Also, it should be possible to use one of your vector layers as a basemap,
rather than creating a layer that does
Well, I'm only displaying blank tiles on that layer, but there are a number
of items in the vector layer aboveāI would like to restrict the viewport to
the region containing these items.
M.
On Mon, Jul 19, 2010 at 6:04 PM, Lennox Antoine wrote:
> What effect are you referring to? Why do you c
What effect are you referring to? Why do you care to restrict the bounds of
the layer if you're just displaying blank tiles?
Lennox
On Mon, Jul 19, 2010 at 5:19 PM, Mike Purvis wrote:
> In both those cases I get global coordinates, though, don't I?
>
> My Image layer is like so:
>
> baseLay
In both those cases I get global coordinates, though, don't I?
My Image layer is like so:
baseLayer = new OpenLayers.Layer.Image( "Image",
"/static/img/gridmap.png",
new OpenLayers.Bounds(0, 0, 3, 3),
new OpenLayers.Size(600, 600),
{});
It's a 600x600 image, and the coordinat
var nobase = new OpenLayers.Layer("No Basemap",{isBaseLayer: true,
'displayInLayerSwitcher': true});
-
Bryan R. McBride, GISP
http://www.bryanmcbride.com bryanmcbride.com
http://geoserving.net/ geoserving.net
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Empty-Ba
You could just use a tile layer that always returns a blank image. Something
like this should work :
var vzl = new OpenLayers.Layer.TMS(
'test', 'http://google.com',
{
getURL: function(bounds){ return "
http://yourserver.com/blank.gif";; },
buffer: 0
Hi,
I currently have a map that uses an OpenLayers.Layer.Image as the baselayer,
and then draws a bunch of vectors on top of it. However, the image in
question is simple enough that I'd really rather just do away with it and
use vectors for my background as well.
What's the best way to do this? I