hi, i have a project on xojo 2019 … where i use the MapViewer web control (with my valid google api key) and it always worked.
I’m porting it to web 2.0 xojo 2021 …, then using the new webMapViever with my google apiKey, and it doesn’t work and constantly returns the message "Google Maps Platform rejected your request. Invalid request. Missing the ‘q’ parameter. ".
The beauty is that the creation of a webMapLocation object works, in fact I set an address to it (and always through my api key) and it gives me back latitude and longitude , then add this WepMapLocation to the webMapViewer control, then call the goToLocation method and the control show error “… missing the ‘q’ parameter ’ …”.
The strange thing is that with xojo 2019 it works …
this is the code that work in X2019 and not work on X2020/21
i put this in a button
wMap.APIKey = “XXX____XXX____XXXX”
dim loc as new WebMapLocation
loc.Address= "via napoli 38 Prato 59100 "
'…here loc has valid data in lat and long
does anyone have any information about it?
ps. even the example that comes with xojo 2021 does not work (even by entering a valid google api key)