Home > front end >  Openlayer screen center problem for help
Openlayer screen center problem for help

Time:09-17

To write the code in a tutorial http://linwei.xyz/ol3-primer/ch04/04-01.html
Slightly modified: chengdu first assigned to the coordinates of cent parameters, after the operation of the positioning to chengdu directly cent value, the result is after the mouse drag can locate to chengdu, but click on the "right" and then click orientation to chengdu is not possible, cent value will change accordingly, operation and the code as shown in figure:

For why will appear this kind of circumstance, cent value is not should not be affected? First thanked
  • Related