Ohio Riders Posted June 20, 2013 Share Posted June 20, 2013 File Name: Google Maps Media Code File Submitter: Ohio Riders File Submitted: 19 Jun 2013 File Category: Integration Easy peasy. Just copy the URL from Google Maps, and paste into your post. Example: https://maps.google.com/maps?q=201+S+Grant+Ave,+Columbus,+OH Tested on 3.4.4. Should work on most others that support these media codes. UPDATES: - Added UK support (google_maps_media_code_uk.zip). here to download this file Link to comment Share on other sites More sharing options...
mick2me Posted June 26, 2013 Share Posted June 26, 2013 Thanks Looks like a great tool but after installing I can resolve your address as above. Our local city URL is more complex: https://maps.google.co.uk/maps?safe=off&q=Long+Row+West,+Nottingham&ie=UTF-8&hq=&hnear=0x4879c22aa35d7679:0x560bfdf39b9014ce,Long+Row+W,+Nottingham&gl=uk&ei=J53KUZGJHMSZ0AWo_oDwCg&ved=0CC8Q8gEwAA will not resolve in post, Google maps test any advice? Link to comment Share on other sites More sharing options...
Ohio Riders Posted June 26, 2013 Author Share Posted June 26, 2013 It specifically works with maps.google.com. You're using maps.google.co.uk. I've added an additional file for the UK folks. http://community.invisionpower.com/files/download/6537-google-maps-media-code/ Download google_maps_media_code_uk.zip and try it again. Or you can just change maps.google.com to maps.google.co.uk in the xml file. Link to comment Share on other sites More sharing options...
Dmacleo Posted June 26, 2013 Share Posted June 26, 2013 does installing UK one overwrite the other one? edit: yes it does as its named the same I added UK to name and both imported, have not tested though Link to comment Share on other sites More sharing options...
Ohio Riders Posted June 26, 2013 Author Share Posted June 26, 2013 does installing UK one overwrite the other one? Shouldn't. Should just add a new one. I've changed the name of the new one to Google Map UK so you'll be able to see which is which in the list of media codes in your admin cp. When I have a few minutes, I'll figure out the regex to make one media code work with both .com and .co.uk. Link to comment Share on other sites More sharing options...
Dmacleo Posted June 26, 2013 Share Posted June 26, 2013 see above, I just d/l and UK was not in name of xml Link to comment Share on other sites More sharing options...
Ohio Riders Posted June 26, 2013 Author Share Posted June 26, 2013 see above, I just d/l and UK was not in name of xml "Just" as in after my last post or before? I updated the UK file to change the name to Google Map UK in response to your question. I just downloaded it to check: <mediatag_name>Google Map UK</mediatag_name> Link to comment Share on other sites More sharing options...
Dmacleo Posted June 26, 2013 Share Posted June 26, 2013 ah I see, when I d/l 2 minutes before I posted it did not have UK so we must have overlapped. Link to comment Share on other sites More sharing options...
Unlucky Posted June 27, 2013 Share Posted June 27, 2013 Hi, Anyone got this working on 3.3.x ? Link to comment Share on other sites More sharing options...
Michael Posted June 28, 2013 Share Posted June 28, 2013 You may be able to have a single tag for both .com and .co.uk (and any other TLDs) this way:http(?:s)?://(www.)?maps.google.{2}/?{3}<iframe width="80%" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.$2/maps?q=$3&output=embed"></iframe> Unrelated: Columbus, OH, in the house! Link to comment Share on other sites More sharing options...
Ohio Riders Posted June 28, 2013 Author Share Posted June 28, 2013 You may be able to have a single tag for both .com and .co.uk (and any other TLDs) this way: http(?:s)?://(www.)?maps.google.{2}/?{3} <iframe width="80%" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.$2/maps?q=$3&output=embed"></iframe> Unrelated: Columbus, OH, in the house! That's damn close to what I tried the first time. I'll have to try it your way and see if that works. If so I'll update the file. Thanks for the advice. O-H. :smile: Link to comment Share on other sites More sharing options...
Michael Posted June 28, 2013 Share Posted June 28, 2013 I-O!! Link to comment Share on other sites More sharing options...
Sergey Kuzin Posted July 30, 2013 Share Posted July 30, 2013 it's working MY_google_maps_media_code.xml Link to comment Share on other sites More sharing options...
sobrenome Posted September 19, 2013 Share Posted September 19, 2013 I am trying to insert google map in my database view record template but there is no way I can make it to work. The problem is that the & turns to &. And if I use & in the template, it remains & in the output. <iframe width="570" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.googleapis.com/maps/api/staticmap?markers={$Endereco},{$Cidade},{$Estado}&size=570x400&key=AzRRthYjHrjHUJ2eB9hLlLzXQ&sensor=false&maptype=hybrid"></iframe> Link to comment Share on other sites More sharing options...
Ohio Riders Posted September 20, 2013 Author Share Posted September 20, 2013 I am trying to insert google map in my database view record template but there is no way I can make it to work. The problem is that the & turns to &. And if I use & in the template, it remains & in the output. <iframe width="570" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.googleapis.com/maps/api/staticmap?markers={$Endereco},{$Cidade},{$Estado}&size=570x400&key=AzRRthYjHrjHUJ2eB9hLlLzXQ&sensor=false&maptype=hybrid"></iframe> Your url looks nothing like a normal Google Maps query url. For instance, you're hitting googleapis.com. Link to comment Share on other sites More sharing options...
sobrenome Posted September 22, 2013 Share Posted September 22, 2013 The URL is ok. Look here: https://developers.google.com/maps/documentation/staticmaps/ It works fine if '&' was not changed to '&' by IPS system. Link to comment Share on other sites More sharing options...
sobrenome Posted September 23, 2013 Share Posted September 23, 2013 I have changed the code to insert the static map as a image, not as iframe: <img src="http://maps.googleapis.com/maps/api/staticmap?markers={$Endereco},{$Cidade},{$Estado}&size=570x400&key=AIzaSyBRQuPaeYcirustWWW&sensor=false&maptype=hybrid" alt="Localização de {$data['record']['field_40_value']}" height="400" width="570"> it's working fine in Firefox and Chrome. But in Safari it's not. Anyone knows why? Link to comment Share on other sites More sharing options...
rbiss Posted January 27, 2014 Share Posted January 27, 2014 What is the media tag called in the media tag folder? When I upload I don't see a reference for it anywhere. Link to comment Share on other sites More sharing options...
rbiss Posted January 27, 2014 Share Posted January 27, 2014 OK, I figured that part out. Does anyone know how to get this stuff to work in IP Content? I would like to set up a database where members could load addresses for different stuff, then show it on a content page. Any tips are appreciated. Link to comment Share on other sites More sharing options...
beberobu Posted October 30, 2014 Share Posted October 30, 2014 it's working Thanks! How is supposed to be installed? I tried with "Look & Feel / Post Content / BB Code Management" But is not working to me. Just don't appear in codes list. I have 3.4.7 Link to comment Share on other sites More sharing options...
Kjell Iver Johansen Posted December 12, 2014 Share Posted December 12, 2014 I can't get this important media tag to work. I guess it is because google changed their URL system? Anyone has a fix? Link to comment Share on other sites More sharing options...
mfahl Posted February 8, 2015 Share Posted February 8, 2015 Be nice to have this working for 3.4.7 please Link to comment Share on other sites More sharing options...
Aaron Tan Posted March 20, 2015 Share Posted March 20, 2015 Agreed! Was hoping I wasn't the only one this wasn't working for. Link to comment Share on other sites More sharing options...
luizmoraes Posted May 13, 2015 Share Posted May 13, 2015 Not working... this is related to the new google URL system. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.