Search in sources :

Example 11 with LngLat

use of com.mapzen.tangram.LngLat in project StreetComplete by westnordost.

the class TangramConst method toLngLat.

public static List<List<LngLat>> toLngLat(List<List<LatLon>> positionLists) {
    List<List<LngLat>> result = new ArrayList<>(positionLists.size());
    for (List<LatLon> positions : positionLists) {
        List<LngLat> resultPositions = new ArrayList<>(positions.size());
        for (LatLon pos : positions) {
            resultPositions.add(toLngLat(pos));
        }
        result.add(resultPositions);
    }
    return result;
}
Also used : LatLon(de.westnordost.osmapi.map.data.LatLon) OsmLatLon(de.westnordost.osmapi.map.data.OsmLatLon) LngLat(com.mapzen.tangram.LngLat) ArrayList(java.util.ArrayList) List(java.util.List) ArrayList(java.util.ArrayList)

Aggregations

LngLat (com.mapzen.tangram.LngLat)11 SharedPreferences (android.content.SharedPreferences)2 Point (android.graphics.Point)2 PointF (android.graphics.PointF)2 LatLon (de.westnordost.osmapi.map.data.LatLon)2 OsmLatLon (de.westnordost.osmapi.map.data.OsmLatLon)2 ArrayList (java.util.ArrayList)2 List (java.util.List)2 Rect (android.graphics.Rect)1 BoundingBox (de.westnordost.osmapi.map.data.BoundingBox)1