[OpenLayers-Users] [MapFish-Users] wrong scale and offset
Sarah Schuessler
sarah_flip at yahoo.de
Fri Jan 22 05:28:10 EST 2010
Hi eric and list,
thanks for your answer!
I play around with mapfish example from quickstart, so my code is as the following:
var createMap = function() {
return new OpenLayers.Map({
projection: new OpenLayers.Projection("EPSG:31467"),
displayProjection: new OpenLayers.Projection("EPSG:4326"),
//minScale: 1000000,
//maxSclae: 5000,
scales: [300100,250000, 150000 ,90000, 70000, 60000, 50000, 40000, 30000, 20000, 10000, 5000],
units: "dd",
numZoomLevels: 12,
maxResolution: 0.025, //"auto",
maxExtent: new OpenLayers.Bounds(7.7,47.57,10.501,49.571),
allOverlays: false,
controls: []
});
};
I played around with resolution for wms layers (both from ArcIMS with defined minscale and maxscale) which has scale issue:
new OpenLayers.Layer.WMS("WMS1", "http://myserver/wmsconnector/com.esri.wms.Esrimap/My_GIS?",
{layers: '0', format: "image/png", transparent: true }, {projection: "EPSG:4326", isBaseLayer: true, displayInLayerSwitcher: true, visibility: true, resolutions: [0.0000952, 0.0001269, 0.0001587 ]} ),
But that did not change anything.
Please ask again if something is not clear or you need more code.
Thanks
best regards
Sarah
________________________________
Von: Eric Lemoine <eric.lemoine at camptocamp.com>
An: Sarah Schuessler <sarah_flip at yahoo.de>
CC: users at mapfish.org; users at openlayers.org
Gesendet: Donnerstag, den 21. Januar 2010, 22:33:10 Uhr
Betreff: Re: [MapFish-Users] wrong scale and offset
On Wednesday, January 20, 2010, Sarah Schuessler <sarah_flip at yahoo.de> wrote:
> Hi list,
>
> I wanted to show that I solved one of my problems:
> offsets went away after I added 'projection: EPSG:4236' to my OpenLayers.Layer.WMS.
>
> I could not manage problem about scale. Any hints about that?
Hi. This is hard (at least to me) to help you with so little
information. Please provide a live example showing the problem, or, if
that's not an option for you, share some of your code with the list.
Cheers,
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100122/5d85fea4/attachment.html
More information about the Users
mailing list