Jump to content

Google Maps for uniGUI


lema

Recommended Posts

2 hours ago, sengkeelim said:

 How to setting Google Api key in FSMap ?

You must add FSKeys component in ServerModule and inform your Google Maps key.

image.png.6fdb4529343e090a1a2dff31140970e5.png

Then you link the maps component with the key component.

Link to comment
Share on other sites

  • 2 weeks later...
On 2/1/2022 at 2:16 PM, Israel Portillo said:

Hi Lema.

Thanks for you awesome component.

Is there a way to save the UniGMap canvas into a jpg image ?

Mi goal is to generate the map with polylines then save it in a jpg file for future views of the same map to watch the image a not to make another query to google maps api...?

thanks again.

 

 

source: https://stackoverflow.com/questions/43068738/get-static-image-from-google-map-for-given-area

 

https://maps.googleapis.com/maps/api/staticmap?size=600x400&markers=icon%3Ahttp%3A%2F%2Fwww.google.com%2Fmapfiles%2Farrow.png|41.39479%2C2.148768&visible=41.320004%2C2.069526|41.469576%2C2.22801&key=yourapikeyhere

Link to comment
Share on other sites

  • 10 months later...
  • 7 months later...
17 minutes ago, picyka said:

How to resolve these warnings, has anyone managed?

Aviso.PNG

Solution:

Self.CustomFiles.Add('https://maps.googleapis.com/maps/api/js?key=' + Self.KeyMaps + '&callback=gmNoop&libraries=geometry,places,visualization');

ServerModule.CustomMeta:

<script>

function gmNoop(){ 

  console.log('GMap Callback');
   
};        
                          
</script>

Link to comment
Share on other sites

  • 4 months later...
ServerModule	

{* MAPS *}
Self.CustomFiles.Clear;
Self.CustomFiles.Add('https://maps.googleapis.com/maps/api/js?key=' + Self.KeyMaps + '&callback=gmNoop&libraries=geometry,places,visualization');
Self.CustomFiles.Add('../files/maps/uniGmap.css');
Self.CustomFiles.Add('../files/maps/markerwithlabel_packed.js');
Self.CustomFiles.Add('../files/maps/markerclusterer.js');

console:

Google Maps JavaScript API has been loaded directly without loading=async. This can result in suboptimal performance. For best-practice loading patterns please see https://goo.gle/js-api-loading

Has anyone resolved this?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...