0

Openlayer ZK7

asked 2014-10-23 19:55:07 +0800

mock gravatar image mock
34 2

Hey, i want to set the zoom and the map center with this code:

olMap.setCenter(new LonLat(currentLoc.getPosLng(), currentLoc.getPosLat()).transform(new Projection( "EPSG:4326"), olMap.getProjection()), 14, false, true);

The part which set the center works, but the zoom part not??? Any ideads...

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-11-05 01:40:56 +0800

JerryChen gravatar image JerryChen
1596 3
ZK Team

try to invoke method

public void zoomToExtent(Bounds bounds, boolean closest)

or

public void zoomToMaxExtent()

from the class "Openlayers".

link publish delete flag offensive edit
0

answered 2014-11-05 09:25:09 +0800

parufkapufka gravatar image parufkapufka
1
http://www.dobre-lokaty.c...

I can't help U, but I think U wolud search some info in google, there was everything, also you can wait there for answer

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-10-23 19:55:07 +0800

Seen: 14 times

Last updated: Nov 05 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More