Hi! im tryng do make a zoom to some area in a Map (native) like the
MapComponent's zoomTo(BoundingBox) use to do.
i was tryng to implemented by myself coding -but without- good results and
i cant do it on the native way that i think tha its the best.
considering that that functionality was originally in the mapComponent, its
possible to the team plans to implement it in the MapContainer?
also, if somebody have solve that problem , please share the code.
My CN1 code is:
Coord centro = getCenterCoord(parBoundingBox);
mapa.setCameraPosition(centro);
int currentZoom = 1;
mapa.zoom(centro, currentZoom);
while
(mapa.getBoundingBox().contains(parBoundingBox.getNorthEast()) == true &&
mapa.getBoundingBox().contains(parBoundingBox.getSouthWest()) == true)
{
currentZoom++;
mapa.zoom(centro, currentZoom);
}
currentZoom--;
mapa.zoom(centro, currentZoom);
If you are experiencing an issue please mention the full platform your
issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator
Device
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/007061fd-20f3-451e-8237-37e3a2b600e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.