Apply default zoom to Google Maps

Hi,

In v13, the new locate image command can be customized.

Go to Preferences>Miscellaneous>Advanced>image_locate_service and replace the line with google map with:

google[Google Maps]=https://maps.google.com/?q=%lat%,%lon%&ll=%lat%,%lon%&z=7

Change the z=# to apply a zoom between 1 to 20.

Select an image file containing GPS coordinates to display the image toolbar. Customize and drag and drop the locate image command to this toolbar. I set the button to only display an icon.

TODO: I think we could improve this button making it disabled if the selected image doesn’t have GPS info. If someone wants to help. I guess it would use the evaluator.

Some info here:

Note that Image LOCATE only hides/disables itself in the viewer, not when placed on lister toolbars. Checking if the selected file(s) contain GPS data each time the selection changes would be slow/expensive, while the image viewer already knows about the file it has loaded and displayed.

1 Like

Could I use @enableif with this button ?

Image LOCATE=google

How?

Yes. For example, this would create a button that works only on Sundays:

@enableif:=DatePart(Now(), "D")=="1"
Image LOCATE=google