Tag Info

New answers tagged

1

Implemented for Javascript: var r = 100/111300 // = 100 meters , y0 = original_lat , x0 = original_lng , u = Math.random() , v = Math.random() , w = r * Math.sqrt(u) , t = 2 * Math.PI * v , x = w * Math.cos(t) , y1 = w * Math.sin(t) , x1 = x / Math.cos(y0) newY = y0 + y1 newX = x0 + x1


1

getMap() is deprecated. Use callback setOnMapLoadedCallback which is called when the map finishes loading. googleMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() { @Override public void onMapLoaded() { //Add markers here googleMap.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 15)); ...


0

I'm not sure how to do this in Android, but here's how to do it on the computer: I was able to use Maperitive to mark a bounding area, download OSM data for the area, generate tiles for it locally, and deploy the map on a local webpage using leaflet.js . I can browse this map without any internet connection. Download and run Maperitive. First, click "Map > ...


0

When displaying the map data as vector graphic via mapsforge, have a closer look at GraphHopper when you need a routing engine on mobile systems like android. There is a demo apk file for android testing purposes, and instructions how to get routing map data from raw OSM data. I also remember some topics on Graphhoppers mailing list about android use ...



Top 50 recent answers are included