Export to GitHub

google-maps-utility-library-v3 - issue #341

setPosition not working*


Posted on Jun 24, 2015 by Happy Wombat

Demo link or sample code: var test = new google.maps.LatLng( 46.818188, 8.227511999999933 ); infoBox.setPosition(test);

Expected result: The infobox' position: lat, lng will have changed to the given latlng.

Actual result: the infobox still has position: lat, lng as specified after initiating.

Version: 1.1.13

Browser / Operating System: [CHROME / Windows 8]

Additional comments: Setting the content of the infoBox is not a problem. I have tried a number of different inputs for setPosition however, including an array containing lat:, lng and a comma seperated string. Nothing seems to change the initial value.

***************************************************** Tip: Star this issue (next to title) to receive notifications of status changes against this issue, also used as a gauge for how many people are interested in seeing it resolved. *****************************************************

Comment #1

Posted on Jun 24, 2015 by Happy Wombat

Fixed. I used the infoBox.open commend, and accidentally added the old latlng in the second argument.

Status: New