Skip to content

Instantly share code, notes, and snippets.

@tokapeb
Created June 25, 2012 15:57
Show Gist options
  • Select an option

  • Save tokapeb/2989414 to your computer and use it in GitHub Desktop.

Select an option

Save tokapeb/2989414 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
var editor = new JCSDLGui($("#jcsdl"), {
//Change the speed of animation to 0
animate : 0,
save : function(code) {
// output the resulting JCSDL code into a textarea
$('textarea[name="jcsdl-output"]').val(code);
},
//Sets the Map Overlay element color, opacity, and stroke
mapsOverlay : {
strokeWeight : 1,
strokeColor: '#ffffff',
fillColor : '#ff0000',
fillOpacity : 0.3
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment