Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example: Add a legend #14

Open
GoogleCodeExporter opened this issue Feb 11, 2016 · 2 comments
Open

Add example: Add a legend #14

GoogleCodeExporter opened this issue Feb 11, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

Create an example that adds a legend overlay.

Original issue reported on code.google.com by tylerick...@gmail.com on 2 Aug 2011 at 9:32

@GoogleCodeExporter
Copy link
Author

Possible API to use: 
http://code.google.com/apis/chart/infographics/docs/dynamic_icons.html#outlined_
text

Original comment by tylerick...@gmail.com on 2 Aug 2011 at 9:59

@pwatt01
Copy link

pwatt01 commented Oct 25, 2016

Here is an example that worked for me, based on the example at http://www.google.com.au/earth/outreach/tutorials/screenoverlays.html

overlay = KML.ScreenOverlay(
                    KML.name('Legend'),
                    KML.Icon(KML.href('your.url/here'')),
                    KML.overlayXY(x="0", y="0", xunits="fraction", yunits="fraction"),
                    KML.screenXY(x="25", y="95", xunits="pixels", yunits="pixels"),
                    KML.rotationXY(x="0.5", y="0.5", xunits="fraction", yunits="fraction"),
                    KML.size(x="0", y="0", xunits="pixels", yunits="pixels")                    
                    )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants