Page 1 of 3

Locator 3.5

Posted: Thu 05 Feb 2015, 14:25
by Geoffrey
New version 3.5
Added option for larger map image.
Settings for zoom, map or satellite, text position and image size saved.
Fixed image not shown if there is a ampersand "&" in the location text, now replaces the "&" with "and".

New version 3.4
Added preference settings to select default save directory and file type, added more zoom levels

New version 3.3

Locator now only uses rsvg-convert to save the image as either PNG, PDF, EPS, PS, SVG, depending on the version of rsvg-convert used all these save formats may not be available.
Added error messaging and click on image to view location with Google Maps.

New version 3.2

Latest update, now the location text can be edited and positioned beneath the image.
The search now works a little better with the inclusion of comma's "," between each word within the script search string.
fixed a few annoyances, now functions cleanly, clearing the gui image and text on non searchable terminology.

New version 3.1

Latest version now has the location and coordinate text on the image, this can be saved as a PDF or PNG, PDF text is selectable.
The PDF save uses rsvg-convert, I think that's standad on most pups, the PNG save requires gst-launch-0.10, that's gstreamer with plugin-bad from what I gather.
To create a save just name the file something.pdf or something.png, if it don't work then you are missing the needed applications, to check if you have them

Code: Select all

# which gst-launch-0.10
/usr/bin/gst-launch-0.10
# which rsvg-convert
/usr/bin/rsvg-convert
The image text is black on the map and white for the sat image, long text strings are folded to a second line, that should be enough from the tests I've done.
Hope this is found to be of some use :)

New version 3.0
bug fixes
Reworked the GUI, no custom font's, enabled maximize, image now is resized to suit screen resolution, tested at 640x480, not that anyone would use that lower res.
changed zoom spinbutton to combobox, this makes it easier and quicker to specify a zoom level.
should be able to add gettext to this now,

New version 2.0, now views map image or satellite image with zoom.

I used the entry input as in pfind, just input the search text and hit enter on the keyboard. I found zoom works best with the scroll wheel, the mouse button sometimes jumps two steps.

I'm not at all proficient with scripting so others may like to do more to this.

If you have installed the older versions remove them first, as I have renamed the script "locator", it was "locator.sh".

New version 1.1, smaller GUI, larger font, will only run the one instance and can view the location on Google maps.

Posted: Thu 05 Feb 2015, 15:09
by Jasper
Hi Geoffrey,

It's brilliant and lightning fast.

One aspect, which may be of interest, is if I enter my home address as:

House No, Street Name, Village, Town

xxxx xxx my full 7 character postcode is accurately displayed.

However, if my village is omitted, I get

xxxx (the first four characters of my postcode).

My regards and thanks

Posted: Fri 06 Feb 2015, 03:45
by Geoffrey
Jasper wrote:xxxx xxx my full 7 character postcode is accurately displayed.

However, if my village is omitted, I get

xxxx (the first four characters of my postcode).
I find that some aren't shown correctly unless it's give more info, a Google thing, other than a few minor glitches it works ok.

I was looking for a way to get coordinates, everywhere I looked it said that a key was required for the Google maps api, apparently not.

I've made a few changes, set the display font size, tightened the GUI, it was a bit big, now only one instance will run and you can view the location on Google maps.

New version 1.1 first post

Posted: Wed 11 Feb 2015, 07:22
by Geoffrey
Updated to version 2.0, now views maps and satellite images with zoom, see first post.

Posted: Wed 11 Feb 2015, 07:41
by neerajkolte
Thanks Geoffrey

Works Fine in Fatdog64-700.
Thanks.

- Neeraj.

netbook

Posted: Wed 11 Feb 2015, 12:08
by josejp2424
Very good program, but gives problems in netbook screen with 10.

Not allows you to maximize.
Sorry for my english

Image

Re: netbook

Posted: Fri 13 Feb 2015, 21:46
by Geoffrey
josejp2424 wrote:Very good program, but gives problems in netbook screen with 10.

Not allows you to maximize.
Sorry for my english
The reason the gui don't fit your screen is that the font's other than the buttons are of a fixed size, the image is also fixed at 640x480.

I'll have a look at it and see what I can do, might have to scale the image to suit screen resolution.

Posted: Sat 14 Feb 2015, 10:36
by Geoffrey
Updated to version 3.0, it's now a more conventional GUI layout, see first post.

locator

Posted: Tue 17 Feb 2015, 21:31
by josejp2424
Now yes Thanks

Image

Re: locator

Posted: Wed 18 Feb 2015, 06:53
by Geoffrey
josejp2424 wrote:Now yes Thanks
Here's a new version 3.1 with text on image, see first post.

Posted: Mon 09 Mar 2015, 14:24
by Geoffrey
Updated to version 3.2, see first post.

Posted: Sun 26 Apr 2015, 01:20
by Geoffrey
Updated to version 3.3, see first post.

Posted: Sun 26 Apr 2015, 05:00
by Moat
Neat little app - very fast and light way to access Google maps!

But these eyes are gettin' old, so - hope you don't mind a little feedback...

1) I can't re-size or maximize the window - the titlebar's maximize button is non-functional, and there are no drawn window borders to "grab" (Locator v3.3 on Precise 5.7.1 with Openbox as the WM). 1280x800 pix screen laptop.

Not sure if the actual image would/should resize larger, anyways...? Probably an Openbox-specific thing. Tried fiddling around with the size parms in the script, but found it to be a bit over this noob's head... :oops:

2) In using, I find I'm wishing the zoom went out further - like maybe another 5 steps (i.e. 15-ish steps total) - out to, say, 500 kilometers or thereabouts. 25, 50, 100, 250, 500 km steps, maybe. That'd be nicer for quickly saving a "how do I get to that town?" map as a traveling/trip planning reference.

3) Also would be pretty slick if the image last saved directory (i.e. Pictures directory) and format (.png, .pdf, etc...) were saved between uses - or some way to at least set defaults for those.

In any case, a sweet little app - and a great lightweight addition to Puppy! Thanks,

Bob

Posted: Sun 26 Apr 2015, 18:20
by Rangan Masti
I find this app good :lol:

Posted: Tue 28 Apr 2015, 04:18
by Geoffrey
Updated to version 3.4, see first post.
Moat wrote: 1) I can't re-size or maximize the window - the titlebar's maximize button is non-functional, and there are no drawn window borders to "grab" (Locator v3.3 on Precise 5.7.1 with Openbox as the WM). 1280x800 pix screen laptop.
No the GUI is not resizable, the image determines the size, the image from google is a maximum of 640x640, the size downloaded is 640x480 then reduced to ⅓ for the display, this is so the GUI fits the screen in different resolutions.
Tried fiddling around with the size parms in the script, but found it to be a bit over this noob's head
You can set the displayed image to ½ size, that might work for you ok, just edit the script at line number 29 change the 3 to a 2

Code: Select all

WIDTH=$(( $W / 3 ))
2) In using, I find I'm wishing the zoom went out further - like maybe another 5 steps (i.e. 15-ish steps total) - out to, say, 500 kilometers or thereabouts. 25, 50, 100, 250, 500 km steps, maybe. That'd be nicer for quickly saving a "how do I get to that town?" map as a traveling/trip planning reference.
Done added extra zoom levels.
3) Also would be pretty slick if the image last saved directory (i.e. Pictures directory) and format (.png, .pdf, etc...) were saved between uses - or some way to at least set defaults for those.
Also done, thanks for the feedback.

Posted: Tue 28 Apr 2015, 05:38
by Moat
Geoffrey wrote:Also done...
Lol! :D Fantastic! Thanks much, Geoffrey. This application just became 10x more useful, for me.

Preferences working just as they should, here.

And yes - setting the displayed image to 1/2 via the line 29 tweak does the trick on this monitor.

Great app! Just too cool... 8)

Thanks again,

Bob

Posted: Wed 06 May 2015, 11:39
by Geoffrey
Updated to version 3.5, see first post.

Posted: Mon 25 Jul 2016, 19:31
by vovchik
Dear Geoffrey,

Thanks very much for Locator. It is very slick and requires very little, which is great. I took the trouble of optimizing the Google maps svg, and it is now clearer, to me anyway, and 1/3 the size. Maybe you can make use of it.

With kind regards,
vovchik

Posted: Tue 26 Jul 2016, 14:01
by Geoffrey
vovchik wrote:Dear Geoffrey,

Thanks very much for Locator. It is very slick and requires very little, which is great. I took the trouble of optimizing the Google maps svg, and it is now clearer, to me anyway, and 1/3 the size. Maybe you can make use of it.

With kind regards,
vovchik
Glad you like it, I was going to add more features, but opted not to, it works fine as is and doing so would of made it overly complex, your svg works fine, though I had to change all the single quotes(') to double(") for it to work in the script.

Here is a tar.gz with your svg for anyone that wants it, just extract it to /usr/bin to replace the existing file, or if you don't have the pet installed the script can be run from anywhere you like as a standalone.

I'm running this in X-Slacko 4.1, the only function that doesn't work is the save as eps, this version of rsvg-convert wasn't compiled with the support for it.

Posted: Wed 27 Jul 2016, 17:29
by Argolance
Bonjour Geoffrey,
Thank you for this!
Do you think it would be possible to internationalize your application (using gettext - Note that I eventually could do it and make the French mo file in the wake...)?

Cordialement..