Printing a map generated by Google

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
rgtr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 199
Joined: Tue Sep 01, 2009 11:31 am
Location: Glasgow
Contact:

Printing a map generated by Google

Post by rgtr » Thu Apr 15, 2021 2:07 pm

Hi

I have created a plugin that displays a KML file in a google map. It works for J4.0 and J3.9.
I would like to be able to print just the map.

I need some pointers as to what to do !

Here is the J4 test site - http://tdocplus.co.uk/0a_Empty400/index.php/map-test
And the J3 one. http://tdocplus.co.uk/1a_Empty3924/inde ... -gmap-test

The J4 test site shows the code ...

Thanks

Richard
PS messing about with getting the upgrades to work ! Google Chrome and persistence playing havoc with me !

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Printing a map generated by Google

Post by Webdongle » Thu Apr 15, 2021 5:13 pm

What did you use to display the map? extension or directly in the Article?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

rgtr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 199
Joined: Tue Sep 01, 2009 11:31 am
Location: Glasgow
Contact:

Re: Printing a map generated by Google

Post by rgtr » Fri Apr 16, 2021 7:43 am

Webdongle.
As I said I have written a plugin, and it goes in an article in the conventional manner, triggered by "oncontentprepare" as seems usual.
The links show it working well in both J3 and J4.
The map is displayed using the Google Maps API - links to that shown in the code and my comments are are all published on the link above for J4.
Richard

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Printing a map generated by Google

Post by Webdongle » Fri Apr 16, 2021 9:10 am

Appending
?tmpl=component
at the end of the url will display the Component area without modules.

To show a print button see viewtopic.php?t=916789#p3386560 and the following posts of that thread
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

rgtr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 199
Joined: Tue Sep 01, 2009 11:31 am
Location: Glasgow
Contact:

Re: Printing a map generated by Google

Post by rgtr » Fri Apr 16, 2021 9:18 am

Webdongle.
That shows me nothing that I do not know - just the article as is outwith the template.
Why are you suggesting this ?
Richard

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Printing a map generated by Google

Post by Webdongle » Fri Apr 16, 2021 2:20 pm

rgtr wrote:
Fri Apr 16, 2021 9:18 am
...
Why are you suggesting this ?
...
rgtr wrote:
Thu Apr 15, 2021 2:07 pm
...
I would like to be able to print just the map.

I need some pointers as to what to do !
...
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

rgtr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 199
Joined: Tue Sep 01, 2009 11:31 am
Location: Glasgow
Contact:

Re: Printing a map generated by Google

Post by rgtr » Fri Apr 16, 2021 5:00 pm

WebDongle.

This is NOT about showing an ARTICLE print button, but a button to print the part of the article [viz the map object] only.

For example if you go to the link to the j3 site http://tdocplus.co.uk/1a_Empty3924/ and choose the Reumer maps test, you will see the print mechanism I need. His code is deprecated by Google, and not usable in J4.

PLEASE address the problem cited. I look forward to some usable ideas.

Richard

rgtr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 199
Joined: Tue Sep 01, 2009 11:31 am
Location: Glasgow
Contact:

Re: Printing a map generated by Google

Post by rgtr » Tue Apr 20, 2021 9:48 am

Webdongle.
I appreciate what you were trying to get me to do. And yes that of course ?tmpl=component?print=1 does show a print button for the ARTICLE.

Mike Reumer's code is as follows:

[ redacted ]

But I cannot see how it REALLY works ! It adds an <a>"Print"</a> to the top of the map, but then ....

Richard
Last edited by toivo on Wed Apr 21, 2021 10:29 pm, edited 1 time in total.
Reason: mod note: code from a vulnerable extension removed

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Printing a map generated by Google

Post by Webdongle » Tue Apr 20, 2021 9:59 am

Mike Reumer's code. What is that and where is it found?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

rgtr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 199
Joined: Tue Sep 01, 2009 11:31 am
Location: Glasgow
Contact:

Re: Printing a map generated by Google

Post by rgtr » Tue Apr 20, 2021 11:54 am

WebDongle

In his plugin ! Version 3.3 [not deprecated] is supposedly available if JED called GoogleMap3. This link says so.
https://extensions.joomla.org/vulnerabl ... us-update/

However, I seem to have just about all the versions - on my old server. Would you like a copy ? email me at [email protected]

just uploaded it here: [ redacted ]

Richard
Last edited by toivo on Wed Apr 21, 2021 10:55 pm, edited 1 time in total.
Reason: mod note: as above

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Printing a map generated by Google

Post by Webdongle » Tue Apr 20, 2021 1:30 pm

No thanks. I don't let untrustworthy extensions anywhere near my computer or site.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

rgtr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 199
Joined: Tue Sep 01, 2009 11:31 am
Location: Glasgow
Contact:

Re: Printing a map generated by Google

Post by rgtr » Tue Apr 20, 2021 1:33 pm

WebD
Ok. But that is the trustworthy version before he gave the package to someone else who "twitterised" it which is what the complaint was about.
so you are not going to help ... what a community !
R

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Printing a map generated by Google

Post by Webdongle » Tue Apr 20, 2021 3:29 pm

I am unable to help because I do not use (or know anything about) dodgy extensions.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

rgtr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 199
Joined: Tue Sep 01, 2009 11:31 am
Location: Glasgow
Contact:

Re: Printing a map generated by Google

Post by rgtr » Tue Apr 20, 2021 4:03 pm

WebDongle.
It is NOT a dodgy extension ... and any assertion that it is is WRONG, and I feel like reporting you.
The version I use is NOT 3.5 [linked to Twitter], but 3.3 - safe as houses.
I think you neither understand the problem, not do you wish to understand it. This intolerance will eventually lead to product failure ....
Richard

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Printing a map generated by Google

Post by Webdongle » Tue Apr 20, 2021 4:24 pm

The listed version once installed prompts for an updated version that has "hidden backlinks and potential backdoor". Sounds very dodgy to me. Fell free to report me.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

gws
Joomla! Champion
Joomla! Champion
Posts: 5946
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: Printing a map generated by Google

Post by gws » Tue Apr 20, 2021 5:05 pm

@rgtr people volunteer to help on these forums, they are not here to be abused by you.

rgtr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 199
Joined: Tue Sep 01, 2009 11:31 am
Location: Glasgow
Contact:

Re: Printing a map generated by Google

Post by rgtr » Tue Apr 20, 2021 6:03 pm

gws,

I feel not only abused but also let down, and I know Mike Reumer does.

I also am a volunteer, but I am getting no help from this community. Check me out on Visual Objects Google Group. I supported a hell of a lot of people.
I run the Linn Park web site and several others [all voluntary] using Joomla.

I am not good on on PHP, but in VO [the OO language that took over from Clipper] I developed over a period of twenty years a major construction industry product which I now give away for free - got my pension.
I have asked a couple of simple questions, and not had much help.

All I want to is print a map generated by Google - NOT the page it sits on. And I would prefer to do this from a modal window, as most of Linn Parks users do so via their mobile phone.

Mike Reumer added a print button at my request - and his was a free bee.

Modals has got a problem of some sort, and I am trying to find out WHY the map scale goes awry using "modal content" tags. Simple modal tags simply don't work.

I have published my code, and also two test sites - J4 and J3.

I look for ward to some help with the question I posed.

Richard

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Printing a map generated by Google

Post by Webdongle » Tue Apr 20, 2021 6:44 pm

It is not that we are unwilling to help. It's just that messing with a plugin that is said to have a 'back door' (and has not been verified by the JED team) is not many volunteers want to get mixed up in.

I spend a lot of time helping others and tweaking pre-written code but I am NOT prepared to install something that wants to update to something marked as risky.

I value my equipment too much for that.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

rgtr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 199
Joined: Tue Sep 01, 2009 11:31 am
Location: Glasgow
Contact:

Re: Printing a map generated by Google

Post by rgtr » Tue Apr 20, 2021 8:16 pm

Web
You just don't read the warning. 3.5 is supposedly bad - but we have used it for some seven years. Not one complaint. 3.3 is fine which is what I suggest.
????????????????????????????????????????
richard

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Printing a map generated by Google

Post by sozzled » Tue Apr 20, 2021 8:52 pm

With respect to everyone here: I searched for the extension Google Maps by Reumer via Google: this is how the JED "characterises" things: https://extensions.joomla.org/extension ... by-reumer/

The extension has been de-listed from the JED because it is listed as a "vulnerable" extension. Regardless of whether the extension contains "malicious" code or not, regardless of what version(s) of the extension may exist, the extension is not available for download from the JED. Those are the facts. It's not within our responsibility to comment on the decision taken by the JED administrators; it's also not within out responsibility to determine whether the extension is good or otherwise. It is, however, our right to say whether we're prepared to accept any risk to deploy this extension (for testing or other purposes). For that reason alone, @Webdongle can say what he likes about his preparedness to assist ... as much as anyone else can say.

This is not a case of forum "abuse". This is a self-help forum. Whether we can help or not is for each person to decide for themselves. I wish the OP the best of luck using this forum to get help with the question. I don't have any further comment. 8)

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Printing a map generated by Google

Post by Webdongle » Tue Apr 20, 2021 10:02 pm

Like I said Dodgy extension.


rgtr wrote:
Tue Apr 20, 2021 4:03 pm
... I feel like reporting you.
...
Report yourself for posting code that is from an extension that has been de-listed in JED because it is a Vulnerable Extension
viewtopic.php?f=8&t=65
Do not post any malicious code, scripts,
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

rgtr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 199
Joined: Tue Sep 01, 2009 11:31 am
Location: Glasgow
Contact:

Re: Printing a map generated by Google

Post by rgtr » Wed Apr 21, 2021 7:55 am

Version 3.3 was verified by the JED team.
Version 3.5 was NOT.
Quote is from version 3.3. PLEASE Read the JED delisting report.

But my question remains: how do I print the map only ?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Printing a map generated by Google

Post by Webdongle » Wed Apr 21, 2021 8:37 am

Where is the link to 3.3 in JED?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

rgtr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 199
Joined: Tue Sep 01, 2009 11:31 am
Location: Glasgow
Contact:

Re: Printing a map generated by Google

Post by rgtr » Wed Apr 21, 2021 8:41 am

https://extensions.joomla.org/vulnerabl ... us-update/

Note: this was published by mapsplugin.com, NOT by Mike Reumer.

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Printing a map generated by Google

Post by sozzled » Wed Apr 21, 2021 8:54 am

rgtr wrote:
Wed Apr 21, 2021 7:55 am
How do I print the map only?
See https://www.wikihow.com/Print-Google-Maps

rgtr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 199
Joined: Tue Sep 01, 2009 11:31 am
Location: Glasgow
Contact:

Re: Printing a map generated by Google

Post by rgtr » Wed Apr 21, 2021 9:47 am

Hi
Not quite what I am looking for ... I have been testing all the alternatives to what I have already.
See here http://tdocplus.co.uk/1a_Empty3924/inde ... -gmap-test for the several example that do not work, and nearly work.
All I want to do is to replicate the mechanism that Mike Reumer added to his version 3.3 - it is just perfect ...
Richard

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Printing a map generated by Google

Post by Webdongle » Wed Apr 21, 2021 11:20 am

Where is the link to it in JED? Methinks (despite the one page refers to 3.3) it has actually been removed.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

rgtr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 199
Joined: Tue Sep 01, 2009 11:31 am
Location: Glasgow
Contact:

Re: Printing a map generated by Google

Post by rgtr » Wed Apr 21, 2021 11:49 am

WEBD..

I have uploaded a copy as it was removed from JED.
[ redacted ]

R
Last edited by toivo on Wed Apr 21, 2021 10:54 pm, edited 1 time in total.
Reason: mod note: URL removed

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44083
Joined: Sat Apr 05, 2008 9:58 pm

Re: Printing a map generated by Google

Post by Webdongle » Wed Apr 21, 2021 12:16 pm

So 3.3 was removed from JED. Again my statement stands ... I don't let dodgy extensions near my computer or site. You have posted code from a dodgy extension. Perhaps now the penny has dropped for you. It doesn't work for a reason.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

rgtr
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 199
Joined: Tue Sep 01, 2009 11:31 am
Location: Glasgow
Contact:

Re: Printing a map generated by Google

Post by rgtr » Wed Apr 21, 2021 12:23 pm

WebD

The code posted WORKS. Reumer's maps WORKS exceedingly well was and remains possibly the best available. V3.3 is SAFE.
I want to know how to add a print button to MY extension [tdocgmap] which produces google maps with kml's no problems. Reumer's extension is the ONLY one of the many that has this facility.
The code I quoted is from v 3.3 - I just cannot fathom how it works.

So again I ask - how do I add a print button to print JUST the googlemap ...

Stop rabbiting on about dodgy code - if you have no idea how to do it, then say so.
My code is published here: [ redacted ]
Last edited by toivo on Sun Apr 25, 2021 2:28 am, edited 1 time in total.
Reason: mod note: URL removed - please observe the forum rules about self-promotion!


Locked

Return to “Extensions for Joomla! 3.x”