[OpenLayers-Users] problem with map.setCenter and zoom

Eric Lemoine eric.lemoine at camptocamp.com
Sat Dec 26 15:18:09 EST 2009


On Friday, December 25, 2009, ibrahimsaricicek
<ibrahimsaricicek at gmail.com> wrote:
>
> Hi all,,
>
> I have a similar problem;
>
> map.setCenter(userExtentCenterLonLat,userExtentZoom, false, true);
>
> On Google It shows the whole world, but it should be a placemark in Turkey.
> A zoom in and out solves the problem.
>
> But if the basemap is wms (Mapserver) there is no problem, sets the center
> where we want...
> Any commend??

Hi. Do you also use GeoExt.MapPanel or mapfish.widgets.MapComponent?
If not this is a different issue. I'd recommend you provide a small
example showing your problem.

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



More information about the Users mailing list