Jump to content

Google Maps for uniGUI


lema

Recommended Posts

  • 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...