This root:// notation is no longer supported in Google Earth and you must use the proper URL for the icon To refer to the red flag icon in the 5-th column in the next to last row, you would use root://icons/palette-4.png?x=128&y=32&h=32&w=32 Its URL and href value in KML would be represented as You would refer to x=0 and y=32 where the x=0/y=0 origin was located at the bottom-left of the image. To use the red-square icon in your placemark, See palette-4.png image illustrated on the right. To a specific icon with an x and y offset and height/width of 32-pixels. Within Google Earth program files location was a set of PNG images (palette-1.png, palette-2.png, etc.) from which KML can refer Google Earth 3.0 used a set of 256x256 images for its default icons with URLs of a special form: root://icons/. That is one of the benefits of choosing one of the standard Google icons as opposed to custom icons.Ĥ. Where the domain cannot be accessed but the icons are still displayed. To the corresponding file stored locally which is especially important for closed/standalone environments These URLs are treated as URIs (or aliases) These standard icons include those in the shapes, pushpin, The standard icons, which are shown in the icon chooser dialog in Google Earth (shown as thumbnail below),Īre accessed locally (and not fetched over network). URL to one of the standard icons such as the following:ģ. In fact, if you create a custom icon style with any of the pal image URLs then Google Earth will automatically remap the The pal2 through pal5 icon groups were used by earlier versions of Google Earth and no longer part of the core icons. May incorrectly assume the actual location relative to the icon is at a different place on the map.Ģ. Some such callout then an explicit hotSpot *must* be defined in the IconStyle otherwise end-users If the custom icon implies an implicit hotspot such as having an arrow or X=0.5, xunits=fraction, y=0.5, yunits=fraction which places the center of a custom iconĪt the point's location. The default hotSpot for custom icons in KML is Hotspot at upper-right of icon at arrow-head tip The pushpin icons, for example, have the hotspot defined at the lower-left corner of the icon.Īdding the pushpin icon to a Placemark automatically creates an IconStyle with following settings: icon Left corner of the icon such that x=0, y=0 refers to the lower-left pixel in the icon image. The origin of the coordinate system is in the lower Orientation specified so the client knows where to place the icon with respect Icons are part of Google Earth application and included in the client distribution.Įach of these icons have a default HotSpot The first four groups of icons above (shapes through kml-icons) are the "standard" Google Earth icons. In a web browser and results in a HTTP 404 not found error.ġ. The URL can also be used in KMLįor the track icon style for the same behavior, but in this case the URL itself doesn't resolve if accessed directly The computed compass heading from the previous position. Using the icon (shown above) then the icon is dynamically changed to appropriate icon using If you specify to use the gx:Track extension as used for GPS-tracks and specify a Style Note: The track icons are treated special in Google Earth. You can insert the URLs below into Google Earth when editing the icon for a given placemark or use in the KML you create programmically.Ĭlick any of the groups below to jump to that particular group of icons: The icons below are the official Google icons shown in one place for a handy reference. This is a useful cheat sheet showing all the standard icons to use in Google Earth, Google Maps, and other map related applications.Īll icons are PNG images and include standard symbols for weather, highway, roads, numbers, arrows, etc. The following is a collection of icons Google makes available for Google Earth and Google Maps.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |