Skip to content
Permalink
Browse files

expose layer to javacript

  • Loading branch information
NathanW2 committed Sep 2, 2012
1 parent a61a15b commit 5a0d2f5863c696a043dfc41db3b4b49d2f33409e
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gui/qgshtmlannotationitem.cpp
@@ -229,6 +229,7 @@ void QgsHtmlAnnotationItem::javascript()
{
QWebFrame *frame = mWebView->page()->mainFrame();
frame->addToJavaScriptWindowObject( "canvas", mMapCanvas );
frame->addToJavaScriptWindowObject( "layer", mVectorLayer );
}


0 comments on commit 5a0d2f5

Please sign in to comment.
You can’t perform that action at this time.