How to draw overlay on map in android? - android

I am able to draw a point at particular GEO POINT on map.Now i want to draw overlay on map like this
How can i do it ?
I have kmz file containing all info about overlay like list of geo points.
Can any body guide me ?

I used this tutorial. Part two is what you need. http://mobile.tutsplus.com/tutorials/android/android-sdk-build-a-mall-finder-app-mapview-location/

Related

Highlight all the worlds in Android Google Maps

I'm developing an app in which the user can select points on a Google Maps and create areas based on point-radius and display them on the map with a semi-transparent circle of a specific color. The user is also able to insert "all world" areas. I need to display this "all-world" area on the map, is it possible to add a semi-transparent polygon that cover all the map? Or, is there a better solution to highlight all the map?
Check the documentation of Polygons under the Shapes in Google Maps Android API to cover the map.
Polygon objects are similar to Polyline objects in that they consist of a series of coordinates in an ordered sequence. However, instead of being open-ended, polygons are designed to define regions within a closed loop with the interior filled in.
To create Polygon, first create a PolygonOptions object and add some points to it. These points will form the outline of the polygon. You then add the polygon to the map by calling GoogleMap.addPolygon(PolygonOptions) which will return a Polygon object.
To alter the shape of this polygon, just call the Polygon.setPoints() and provide a new list of points for the outline of the polygon.
Now, for customizing the appearance of the polygon, just check this link. And for the semi-transparent polygon that you want, you can check these tutorial and SO question on how to achieve that.

SkMaps Android - How to get lat/lng used to draw roads

I would like to use the lat/lng data used to draw roads to make my own custom routes and draw lines beside the streets (like to indicate sidewalks). Is there any functionality like getPolyline("SanFran Road") that will give me data points that I can use to draw my custom routes/lines?
You have the pointToCoordinate that returns the long/lat position relative to the screen position.
See more in the SKMapSurfaceView class.

is it possible to draw on road based on a location near it

I am currently developing an application that tracks your path, so it always draws on the map. I want to know if it is possible to draw on the road, since my application gets my location and its not precise, its always near(about 30 m radius) me. I want it not to add it where it is, but on the nearest road
You can draw the path on the map using the Ployline class of Google Map as below:
Polyline line=myMap.addPolyline(new PolylineOptions().add(new LatLng(location.getLatitude(),location.getLongitude())).color(Color.RED));
For more details about it please refer here

Displaying rout between two points in GMap, in android

I want to display the rout in google map, between two points(Latitudes and longitudes), and I am able to draw straight line between these points, now I want to display rout.
Please guide me or suggest some link.
http://maps.google.com/maps?saddr=START&daddr=DESTINATION&output=kml
Connect the coordinates and draw some lines to show your route.

Google Maps - MapView - draw a nice flight route between 2 points

I wonder,
how can I draw a nice flight route between 2 points on a google map's
MapView?
look at this:
http://maps.forum.nu/gm_flight_path.html
this is exactly what I need.
thanks!
Look at my reply to question
How to draw a path on a map using kml file?
and there especially into the RouteOverlay class / draw method.
Since you only want to draw a simple straight line, you probably won't need the rest of the complexity there.

Categories

Resources