Reputation: 4518
I've never used the google maps api before, just wondering if I could remove everything on a map except the country borders. I also want the country names and city names only left on my map. No color, no contour lines, no elevation lines, nothing except these. Also, would I be able to set up reference points so that I could write a program to highlight an area (and then control its brightness or color or size of highlighted area dynamically at runtime based on some external input for example).
Upvotes: 3
Views: 74
Reputation: 28870
For the first part of your question (removing things from the standard maps), what you're looking for is the Styled Maps feature in the Maps API.
To explore what the different styling options do, use the Styled Maps Wizard. When you get the style you want, click the Show JSON button to get the data that you can plug into the API.
The user interface of the Styled Maps Wizard is a little confusing. Be sure to read the help panel and keep experimenting with it.
Upvotes: 1
Reputation: 6069
You can read a KML file to show the outline of a state or country. Data layers can also be used to add custom content such as markers to a map.
Valid stock map types are:
MapTypeId.ROADMAP
to displays the default road map view.MapTypeId.SATELLITE
to displays Google Earth satellite
images.MapTypeId.HYBRID
to displays a mixture of normal and satellite
views.MapTypeId.TERRAIN
to displays a physical map based on terrain
information.Furthermore, you can create custom map types by providing your own tile set.
Upvotes: 0