javascript - "Focus" and activate Google Map Embed Programmatically -
I am very new to the Google Maps API.
I am creating a simple map app for our TV platform at work, the TV uses the custom webkit browser and I have confirmed that the map API works well on it.
Currently when you load a simple app like this on our TV (code is given in the link below):
Before you To focus on "mouse", you need to use the mouse to "click" on the screen, only then, the map embeds "active" and you use up, down, left, right keys to navigate the map can do.
My problem is this; You do not have a mouse on a TV so that you can not "click" on "focus"!
Can you "Focus" on Google Maps programmatically so that I can use the arrow keys on the remote so that the map is usually mapped to the top, bottom, left, right keys to navigate the map ?
Thanks in advance, Mark
update: - My code can be seen here -
- Complete in codepay The screen app is here -
- The hosted full screen app (at least the codepeck markup in the full screen codification view) is here -
resize to Google Maps. google.maps.event.trigger (map, 'resizing'); Add the above code after starting Google Maps, this will fix the problem.
resize to Google Maps. google.maps.event.trigger (map, 'resizing'); Add the above code after starting Google Maps, this will fix the problem.
Comments
Post a Comment