I have a program that generates a .shp file, and exports this as a kml file. I would like to be able to display my output using the standard google map 'map' style (gray background, yellow streets, etc) in google earth, or in the google earth api.
Is there a style guide or method that I should be using?
Any thoughts appreciated - I wasn't sure how to structure this question.
Thank you.
Here is an ArcGIS style that will mimic the Google roads style.
http://conversationswithmyself.com/181/
Well, you can load KML files into Google Maps using the API:
http://code.google.com/apis/maps/documentation/services.html#XML_Overlays
It'll certainly look like Google Maps then :-)
Doesn't help you much if you absolutely need the data visualised inside Google Earth though.
You can define styles in the KML and then apply them to the lines. I don't think there's any predefined styles that look like roads in google maps.
If you define the appearance in ArcGIS before exporting to KML, doesn't that set the appearance in Google Earth?
Related
I'm wondering if it's possible to add a 3D model made in Sketchup, exported o KMZ format, to a Google Map, with the Google Maps API. I was able to add KMZ layers that contained simple data as landmarks and such, but when I try to load the 3D model KMZ, the map just shows a default house file icon.
The test map can be accessed here: http://thebob.com.br/maptest/kmz_test.html
The KMZ file is hosted here: https://sites.google.com/site/dmgckmlfiles/kml-files/Bulk_carrier_1509.kmz
At this point I'm just guessing it's not possible to add 3D models like this into Google Maps (as the exact same thing happens if I import the file through My Maps), but I want to make sure of that before giving up.
Thanks in advance for any info!
Well if you are pertaining in Google JavaScript API, Yes this API does support the KMZ as you can see in this link about Supported KML elements. But the 3D object is not.
Also, according to this SO question, that 3D is not yet features in Javascript API. Closest things to this are Styled Maps. Only the Android implementations are available as of now.
But I found this tutorial that can help you if you still want 3D objects.
I'm importing a .kmz file into google maps, however google maps only displays a 2D projection of the path and seems incapable of displaying variation in altitude. Is that simply a limitation of the program, or is there a way to retrieve and present the height (typically displayed as a transparent vertical green rectangle with vertical yellow bars running through it in google earth)?
Thanks
KML has some limitations in Google Maps.
In particular, extrude element is not supported in Google Maps.
Reference: KML Elements Supported in Google Maps
https://developers.google.com/kml/documentation/kmlelementsinmaps
You could instead use the Google Earth API to embed Google Earth in a web page if that is what you want to do and maintain the 3-D look and feel.
i am placing some locations on google map. i need to set text next to marker on the map. is there a way to do it ? because i can not see any tools or option provided by google maps to do.
its not an application i am developing or coding. i am just saving locations on google map site.
Thanks
Look at the InfoBox from the utility libraries. There is an example in the documentation.
i can not find answers on my questions in google, i hope for sharing your experience with me.
I am going to use KML in Google Maps. My elements are polygons, icons. Also i have to write and rotate text inside polygons, i know KML does not support this element type i am going to use something like ELabel extension with some modifications.
My questions are:
1) What is faster either use nature Google KML Processor + ELabel or the third-party KML Processor + Elabel ?
2) Are there alternative ways to get my task ?
Thanks.
ELabel is for Maps API V2. Since that's been deprecated, you should use Maps API V3 instead. If you do use Maps API V3, you can capture the mouse click on the KML layer and create your own infowindow, showing it the way you want. Here's more information:
http://code.google.com/apis/maps/documentation/javascript/layers.html#KMLLayers
Please take a look at this implementation of http://map.embed.ly/ [google maps][1] . Would like to know how it can be achieved ? I have seen only satellite, hybrid implementation this seems new to me
Ankur
It looks like a well done custom overlay on top of Google Maps API (v3).
The GMAP API website has an example that shows the code as well as the output. Good luck!
What you're looking at doing is implementing the Google Maps API. It provides methods for placing custom overlays and data sets into a Google Maps interface:
http://code.google.com/apis/maps/index.html