Google Map Plugin : Access to map object and others

  • Hi,

    Regarding to the thread : https://krpano.com/forum/wbb/index.php?page=Thread&threadID=13127[/size]


    I'd like to access Google map object and directly handle it using Google map api.
    After triggered 'onmapready' i can access to the map object like

    Code
    var layerMap = vr.get('layer[skin_map]');
    var c = layerMap.gmAPI.map.getCenter();


    Even if I set the plugin's lat and lng like the below, it returns {lat:0, lng:0}

    Code
    <layer name="skin_map" state="closed" url="%SWFPATH%/plugins/googlemaps.js" visible="true" align="lefttop" width="100%" height="100%" x="0" y="0" zorder="20" lat="37.322000" lng="127.123760" zoom="17" mapsapi="https://maps.google.co.kr" bgalpha="1" maptype="normal" onmapready="js(VrEditor.onReadyKrpanoGoogleMap());" controls="zoom" key='SENSORED" >


    setCenter() method is not working as well.
    It seems like layerMap.gmAPI returns another map object not embeded krpano google map.

    I eventually want to change markers status and other options and handle all the other google map API interactively with krpano.

    Any commens are welcomed :(
    [size=10]

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!