Sie sind nicht angemeldet.

Kabkee

Schüler

  • »Kabkee« ist der Autor dieses Themas

Beiträge: 65

Wohnort: South Korea

Beruf: South Korea

  • Nachricht senden

1

Donnerstag, 20. September 2018, 04:19

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


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

Quellcode

1
2
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}

Quellcode

1
<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 :(


Ähnliche Themen