Skip to content

Change LatLon of Point with Zoom #870

Answered by msbarry
wipfli asked this question in Q&A
Apr 18, 2024 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

The geometry needs to already be projected into "world web mercator" coordinates where 0,0=top left, and 1,1=bottom right. There's a latLonToWorldCoords(geometry) utility for this, so you could do:

Point point = GeoUtils.latLonToWorldCoords(GeoUtils.JTS_FACTORY.createPoint(coordinate));

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@wipfli
Comment options

@msbarry
Comment options

Answer selected by wipfli
@wipfli
Comment options

Comment options

You must be logged in to vote
1 reply
@wipfli
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants