Special Events in the next 30 days
Results 1 to 10 of 10
-
07-16-2012, 09:30 PM #1Administrator Corporate Member
DQ
- Nickname
- Ethan (41)
- Join Date
- Oct 2009
- Location
- Anderson, SC
- Posts
- 2,949
- Visit Freq:
- 7.04 visits/week
- Threads
- 123
- Classifieds
- 0
New Feature: Insert Google Maps in Posts
I wanted to take just a moment to let everyone know that we have added a new feature that some of you may find of interest. We have added the capability to insert a Google Map into a post or PM. This is not just a photo of a map, but a real Google Map, so you can pan and zoom just like you would the real thing. If you want to help someone find a retailer -- or even your own shop -- you can now post or PM the viewer a map of the desired location.
To access this feature you can either enclose a complete street address or geodetic coordinates in MAP tags (in traditional BBcode format where MAP is enclosed in square brackets at the beginning, and a /MAP at the end) or you can activate the Advanced Editor (if you are in the Quick Reply editor, click the "Go Advanced" button to switch to Advanced Editor mode). Once in Advanced Editor, you will see the following button (bottom row, far right):

I apologize for the cheesy icon, I'm not a graphics artist, but hopefully it communicates the purpose adequately.
Anyhow, to use it you can either type out the MAP tags (in traditional BBcode format) by hand or highlight the completed address/coordinates and then click the new icon (above), so that they enclose a valid address (House# Street, City, State) or geodetic coordinates (Lat,Lon) OR you can type out the address, such as:
75 Park Place, New York, NY
(which should be a parking garage, for the curious)
and then highlight the the complete address/coordinates and CLICK on the MAP icon so that it automatically encapsulates the address in MAP tags for you, resulting in the following output:
You can also input geodetic coordinates if you need to center the map on something other than a valid street address (or for someplace whose street address is unknown).
40.712927,-74.01329
(which is the new World Trade Center, under construction, should you wish to zoom in!)
I hope everyone finds this feature useful and helpful. Feedback is always appreciated.
PS -- I quick note on the viewing size, the maps are set at 600 pixels height by whatever the width of the post's block happens to be on your display. So, while the height is fixed at 600 pixels, the width will vary considerably depending upon the width of your browser's window.
-
The following user says Thank You to ehpoole for this useful post:
-
07-19-2012, 07:33 PM #2Corporate Member
DQ
- Nickname
- Manfre
- Join Date
- Oct 2010
- Location
- Cary, NC
- Posts
- 941
- Visit Freq:
- 7.15 visits/week
- Threads
- 108
- Classifieds
- 0
Re: New Feature: Insert Google Maps in Posts
If possible, can you add a class to the <div> that wraps the map?
E.g. Change
to<div align="center" style="margin: 5px 5px 5px 5px;">
<iframe width="100%" scrolling="no" height="600" frameborder="0" src="" marginwidth="0" marginheight="0">...</iframe>
</div>
<div align="center" style="margin: 5px 5px 5px 5px;" class="embedded-map">
<iframe width="100%" scrolling="no" height="600" frameborder="0" src="" marginwidth="0" marginheight="0">...</iframe>
</div>
-
07-19-2012, 09:24 PM #3Corporate Member
DQ
- Nickname
- Steve (68)
- Join Date
- Jul 2005
- Location
- Apex, NC
- Posts
- 8,876
- Visit Freq:
- 2.77 visits/week
- Threads
- 1297
- Classifieds
- 0
-
07-19-2012, 10:02 PM #4Administrator Corporate Member
DQ
- Nickname
- Ethan (41)
- Join Date
- Oct 2009
- Location
- Anderson, SC
- Posts
- 2,949
- Visit Freq:
- 7.04 visits/week
- Threads
- 123
- Classifieds
- 0
Re: New Feature: Insert Google Maps in Posts
Why was my thought too?!
I can certainly attach an empty class to it, but it would be an undefined class and have no meaning. The actual formatting of the Map is determined by Google's Map applet and not any HTML/CSS styling that the DIV tag may have attached to it.
More importantly, I can not think of any purpose a class would serve within an otherwise empty DIV block (remember the Google Map is in it's own IFRAME).
Also, keep in mind that there are no conventional CSS files for this site, they are constructed on-the-fly from the far reaches of our database tables.
-
07-19-2012, 10:10 PM #5Corporate Member
DQ
- Nickname
- Manfre
- Join Date
- Oct 2010
- Location
- Cary, NC
- Posts
- 941
- Visit Freq:
- 7.15 visits/week
- Threads
- 108
- Classifieds
- 0
Re: New Feature: Insert Google Maps in Posts
I'm in the process of adding more functionality to my greasemonkey/scriptish script that will make it so the embedded maps don't require so much scrolling to get past. I personally prefer links to maps, but I'm also toying with a show/hide toggle with the map initially hidden.
Having the css selector would ensure that the script doesn't accidentally apply to unintended parts of the DOM. The script is working now, but I'm more concerned with future proofing it.
-
07-20-2012, 12:11 AM #6Corporate Member
DQ
- Nickname
- Manfre
- Join Date
- Oct 2010
- Location
- Cary, NC
- Posts
- 941
- Visit Freq:
- 7.15 visits/week
- Threads
- 108
- Classifieds
- 0
Re: New Feature: Insert Google Maps in Posts
This is what the initial post looks like after I load the page and click the second "Toggle Map". The main feature of the script has always been converting the location text (works on posts, profile, and classifieds).
-
07-20-2012, 08:50 AM #7Corporate Member
DQ
- Nickname
- Steve (68)
- Join Date
- Jul 2005
- Location
- Apex, NC
- Posts
- 8,876
- Visit Freq:
- 2.77 visits/week
- Threads
- 1297
- Classifieds
- 0
Re: New Feature: Insert Google Maps in Posts
We can not be in the position of attempting to support an external script like this. Sorry
-
07-20-2012, 08:52 AM #8Corporate Member
DQ
- Nickname
- Manfre
- Join Date
- Oct 2010
- Location
- Cary, NC
- Posts
- 941
- Visit Freq:
- 7.15 visits/week
- Threads
- 108
- Classifieds
- 0
-
07-20-2012, 01:04 PM #9Corporate Member
DQ
- Nickname
- ChrisM
- Join Date
- Oct 2008
- Location
- Raleigh, NC
- Posts
- 1,815
- Visit Freq:
- 4.96 visits/week
- Threads
- 209
- Classifieds
- 0
-
07-20-2012, 03:18 PM #10Corporate Member
DQ
- Nickname
- Manfre
- Join Date
- Oct 2010
- Location
- Cary, NC
- Posts
- 941
- Visit Freq:
- 7.15 visits/week
- Threads
- 108
- Classifieds
- 0
Similar Threads
-
New Site Feature - My Threads / My Posts
By toolman in forum Staff AnnouncementsReplies: 3Last Post: 06-17-2009, 08:08 AM -
(UPDATED!) New Site Feature: Photo Popup for posts.....
By froglips in forum Staff AnnouncementsReplies: 31Last Post: 06-09-2009, 09:34 PM -
Google search - new feature
By SteveColes in forum Staff AnnouncementsReplies: 18Last Post: 08-12-2008, 11:32 AM








