Can you guys point me to some good example code that tells how to properly add street-based shapefiles to overlays?
What I would like to do is have code that reads in a shapefile, determines whether it is for major roads or secondary roads, sets the style appropriately, and adds it to the overlay.
I've played with this using the austinstreets.shp file in your example data directory, but can not get it to display anything. I do get the united states to show up, and can remove that layer, but not the streets. After several experiements with different styles and covering all 20 zoom levels, still no luck.
What I want to know is the following:
- What features are relevant to streets? I understand there are FIPS codes for US maps, but what about other countries in Europe, Africa, and Asia?
- I know your world map database product covers the world, but how far down does it go in streets? The online sample only seems to go down to major roads for non-US places.
What I'm trying to do is create a default background that has the basics: ocean, continents, countries, major roads (when zoomed out), middle roads (farther in), secondary roads (zoomed in a lot), rivers, and railroads. What I think I need to accomplish that is a switch type statement in my shapefile reading function that uses the features it finds to figure out what the shapefile has in it. It is too bad shapefiles are so lame -- they are too basic -- they should have classification that is globally consistent -- but I'm sure most of us think that.
Any help you can provide on this would be of great benefit to me. I'd like to know the answer for generalized shapefiles from many sources AND how you would do it if I'm using your world map database.