Not really sure how to explain this easily, but here goes. I want to make a highlight overlay on the whole Google Map in Android, except one rectangular are which would stay as default. Basically, the opposite, inverted version of this:
Drawing area at Google Map
Any ideas how to configure this?
Thankyou in advance,
Alex
P.S
Just to keep clear, the example for Javascript is just for picturing purpose, I need this for regular Java :).
Have a look at this Masked Polygon library for Google Maps. https://github.com/vasile/Mask-KML-polygons
Related
In my app I added the map of Google Maps and you can navigate within a given area (which can not be done through maps as it is not drawn). Now I would like to customize the map and add image overlays to the buildings so as to better target people. Let me explain with an example:
In the picture is the image of the building that I customized.
Now I want place the image over the google map. I saw that there GroundOverlay but I can not place it properly.
Does anyone have any tips?
I would recommend using Polygon Shapes instead of Images. Working with Images like you intend to do, would probably be very hard later on.
You might want to look at:
https://developers.google.com/maps/documentation/android-api/shapes
I want to include a MapView in my Application. I have been playing around with the Google Api a bit and it worked quite well.
But now I want to have a map completely offline.
I know there are a lot of possibilities to do this.
The problem is that I would like to have a world map without any labels such as country names, state names, city names and so on.
I just want a map with country borders. It should be possible to zoom in and out and to set markers at specific locations. It should also be possible to tap somewhere in the screen and to get the coordinates in a specific format (e.g WGS84).
Also it would be pretty nice if it would be a satellite overview or something like the mapquest view on OpenStreetMap.org .
I know that there are things like Osmdroid or Mapsforge. But I havent seen a possibility to disable all the (for me) unnecessary labels yet.
Correct me if i am wrong :)
Thank you in advance.
In mapforges you can set label text size. I've never tried to set it to 0 to see if they disapear.
If not, as source code is available in http://code.google.com/p/mapsforge/, you can override the label drawing and recompile it.
Regards.
I am working on making a interactive campus map. I am wanting to take an image (below) and overlay it onto Google maps and then add interactive points of interests. I am not seeing how to add or merge the image to the map. Can this be done? Are there any examples out there I missed?
If you want to replace the google map background.
From my experience, I could say no. It can't be done
But if you want to make it like transparent you can put Your map on top of google map and just set transparent.
However, somebody already been done this before. you might got some idea if you see this
http://www.maplib.net/
http://lifehacker.com/213627/embed-any-image-into-a-google-map
Google Maps Developer Documentation
I have a large PNG that I want to use as a map, but I want to be able to put a location marker on it to tell the user where they are.
I'm really new to android development so how could this be done? Explanation or links would be nice, and I'd like the map to be scrollable as well.
Thanks in advance!
I'm guessing that you want to overlay an object (in this case a PNG image) on the Google map? If this is what you are trying to do, have a look at the documentation. There is also an example here.
I saw these maps in the websites of some universities and I just loved them:
http://www.uottawa.ca/maps/
http://www.washington.edu/maps/
http://map.nd.edu/#/placemarks//zoom/16/lat/41.6993288511065/lon/-86.23415926449582
I would really like to do something like that in an Android app. I've been looking for a way to do it but I've found no clue. Since I'm new to this API I feel quite disoriented.
So, could you please point me in the right direction? Give me some hints, somo tutorials or whatever you think it can be useful.
You can get the mapview easily enough using the Google Maps API. Then you need images of whatever buildings you are proposing to put on the map. The images can be added to a map overlay which will appear on top of the map. The tricky part then, is to match the geo-coordinates of your buildings to the map so that when a user scrolls the map, the images move as well and also to scale the images as the user zooms in and out.