private fun checkCenter(center: LatLon) { println("Testing fromLatLngToPoint using: $center") val p: java.awt.geom.Point2D = googleMap.fromLatLngToPoint(center.toLatLong()) println("Testing fromLatLngToPoint result: $p") System.out.println("Testing fromLatLngToPoint expected: " + (mapComponent.getWidth() / 2).toString() + ", " + mapComponent.getHeight() / 2) System.out.println("type = " + org.graalvm.compiler.nodeinfo.StructuralInput.MarkerType.BROWN.iconPath()) }
Demonstrates how to go from lat/lon to pixel coordinates .