[OpenLayers-Users] WMF as image layer?
Maribel
maribel.bernal at iviron.com
Wed Sep 21 05:58:45 EDT 2011
Hello!
Is possible to load a windows metafile (.wmf) as an image layer?
If is impossible, what is the best way to do this?
var map_options = {};
map_options.numZoomLevels = 20;
map_options.projection = new
OpenLayers.Projection('EPSG:4326');
map_options.units = 'degrees';
map_options.maxExtent = new
OpenLayers.Bounds(-180,-88.759,180,88.759);
var controls = [new OpenLayers.Control.Attribution()];
controls.push(new OpenLayers.Control.Navigation());
controls.push(new OpenLayers.Control.PanPanel());
controls.push(new OpenLayers.Control.ZoomPanel());
map_options.options = {useCookies: true};
map_options.controls = controls;
map_options.theme = null;
map = new OpenLayers.Map('map_local', map_options);
var
url_bmp='http://uweb.urbiotica.com/uweb/images/regions/urbiotica.wmf';
var layer_options = {};
var image = new OpenLayers.Layer.Image('Parking', url_bmp,
map_options.maxExtent, new OpenLayers.Size(580,288),
layer_options);
map.addLayer(image);
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMF-as-image-layer-tp6815501p6815501.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list