Geographic Information Systems Asked by nIMaaZx on February 2, 2021
I have a park area that is not rectangle or a simple shape. It is just like polygon area. I could load sample image on it for testing, in my android app.
There it is :
mGroundOverlayRotated = googleMap.addGroundOverlay(
GroundOverlayOptions()
.image(mImages[0])
.position(LatLng_NEAR_NEWARK, 255f, 84f)
.bearing(110f)
It is worked for simple shape like rectangle.
LatLng_NEAR_NEWARK
is latitude/longitude of center of park.255f
is width of area in meter.84f
is height of area.I cannot using width/height for the area like this.
I can’t figure out how to use Position
function in my code to fit it.
I need something like this :
https://stackoverflow.com/questions/26250481/show-only-ground-overlays-map-android
I saw something about KML format. I’m not sure about it. Should I use SVG/PNG format for this area instead of JPG?
What approach do I use?
Maybe they used the tile provider API instead of the ground overlay. https://developer.here.com/apiexplorer-v2-sample-data/template-web-default/examples/custom-tile-overlay/index.html
https://developers.google.com/maps/documentation/android-sdk/tileoverlay
Or just make the image opaque, so in reality it is a squared GroundOverlay, but through the opacity it seems like the image has the specific form you want.
Answered by Julian Schweppe on February 2, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP