Open bmarsaud opened 6 years ago
What version of java are you using?
I'm having the same issue with jre 1.8.0_181 but it goes away when I use jre 1.8.0_77, so I'm guessing something broke/changed in a recent version of java. Haven't narrowed it down beyond that yet.
Okay, so for some reason it is unable to load the google's script loader which loads the maps api. The workaround is simply to load the maps api directly by modifying src/main/resources/com/lynden/gmapsfx/html/maps.html as follows:
<!--<script src="http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js"></script>-->
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script>
<!--<script type="text/javascript" src="https://www.google.com/jsapi"></script>-->
<script language='javascript'>
function loadMapLibrary(ver, key, lang, region) {
//alert('loadMapLibrary');
var opts = [];
if (key !== 'null') {
opts[opts.length] = 'key='+key;
}
if (lang !== 'null') {
opts[opts.length] = 'language='+lang;
}
if (region !== 'null') {
opts[opts.length] = 'region='+region;
}
var sOpts = opts.join('&');
if (ver === 'null') {
ver = '3.exp';
}
//google.load('maps', ver, { 'other_params' : sOpts, 'callback': 'initMap()' });
initMap();
}
This is making me reconsider my initial guess that it was the java updates, because other people have also reported issues with google's script loader. However, when I open the url (https://www.google.com/jsapi) in my browser, it loads quickly enough. Perhaps it's a java security thing, where it won't load the external script?
I'm trying to use
GeocodingService
in controller that's not displaying a map, so, that not implementsMapComponentInitializedListener
. I'm getting this error when I instantiate à newGeocodingService
:I have another loaded scene, where the map is displayed and the geocoding is working fine here.