2

I have a map and am trying to see what projection is set, but, depending on how I ask, I get two different values, this is what I see in the console:

> this.olMap.projection
< "EPSG:4326"

> this.olMap.getProjection()
< "EPSG:900913"

Is this expected? Which one is true?

0

1 Answer 1

2

olMap.projection is the default projection for layers that are added to the map, with a default value of EPSG:4326

olMap.getProjection is the projection of the map (the display)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.