OK, I think I follow you. You want something that the user does within the webView (in your case, clicking a Google Maps marker) to cause something else to happen in Corona outside of the webView (in your case, going to a different storyboard scene).
There’s no way to directly call Lua/Corona code from Javascript or HTML. That’s because the web page is running in its own mini web browswer environment – in a sense, the page doesn’t even know Lua/Corona exists.
But, there is an indirect way to call Lua/Corona code from Javascript or HTML, which Corona was designed to let you do. You do it by setting up a urlRequest event listener on your webView, and you listen for custom URLs you try to ‘open’ in your webView.
Basically, it looks like this. Here’s some HTML with Javascript:
\<html\> \<head\>\</head\> \<body\> \<script type="text/javascript"\>window.open("LAUNCHED")\</script\> \<a href="CLICKED"\>Try clicking me\</a\> \</body\> \</html\>
If you open this page in a webView and set up a urlRequest listener on it (see the bottom of this API page for an example: http://docs.coronalabs.com/daily/api/library/native/newWebView.html), your listener will receive urlRequest events (http://docs.coronalabs.com/daily/api/event/urlRequest/index.html) where event.url is “LAUNCHED” or “CLICKED”. Thus, your Lua/Corona code will know that something happened in side the webView and can act accordingly.