javascript - Google maps not working in Firefox (gray box) -
i have plugin i'm working on uses google maps api v3. works charm, except in firefox!
i present following url: [redacted because solved]. you'll notice if you're using firefox there gray box google maps stuff available. if use chrome, you'll see nice map google maps stuff.
so that's problem, , i'm hoping here can point me solution.
this code i'm using create map:
function initialize() { var mylat = document.getelementbyid('latitude').innertext; var mylng = document.getelementbyid('longitude').innertext; var mylocation = new google.maps.latlng(mylat, mylng); var mapoptions = { center: mylocation, zoom: 15, maptypeid: google.maps.maptypeid.roadmap }; var map = new google.maps.map(document.getelementbyid("map"),mapoptions); var markeroptions = { position: mylocation }; var marker = new google.maps.marker(markeroptions); marker.setmap(map); } google.maps.event.adddomlistener(window, 'load', initialize);
innertext not supported in firefox.
references:
Comments
Post a Comment