A Place to discuss hiking along your favorite trail
Home Journals Maps Planner Postholer

Integrating Journal/Generic Maps Into Your Website

Anything concerning the Postholer Google Maps. This may be feature requests, marker information updates or bug reports.

Moderator: postholer

Integrating Journal/Generic Maps Into Your Website

Postby postholer » Wed Jan 14, 2009 11:32 am

Integrating a Postholer Map into your website is fairly easy. It will require you to know a bit of html though. The following is designed to help you get the best results.

We do not allow Postholer maps on commercial web sites without previous consent. Any Postholer maps found on commercial web sites will be blocked.

First, decide what type of map you want:
+ Generic trail map
+ Map of journal entrys

Second, how do you want it to display:
+ embedded into your web page
+ Pop-up as another window

What trail_id to use:
1 = Pacific Crest Trail (USFS '08)
2 = Contental Divide Trail (Jonathan Ley, partial)
3 = Appalachian Trail (AT Conservancy)
6 = Grand Enchantment Trail (Brett 'Blisterfree' Tucker)
9 = Arizona Trail (Brett 'Blisterfree' Tucker)

Be sure to change the trail_id for your desired trail.

Generic Maps

With the above info in mind, let's start with a Generic PCT pop-up map:

Code: Select all
<a href="#" onclick="'','popMap','toolbar=0, menubar=0, location=0, status=0, scrollbars=1, resizable=1, width=450, height=375');">Pop-Up Map</a>

...and a generic embedded PCT map:

Code: Select all
<iframe scrolling="auto" frameborder="0" width="450px;" height="375px" name="myMapFrame" id="myMapFrame" src=""></iframe>

Journal Entry Maps

For maps showing journal entry's you need to know the event_id for your journal. The event_id is located at the top of your 'Journal Set-Up' page.

After finding your event_id, in one of the above examples, change:

&event_id=your event id

Further Options
For you hard core hackers here are some other things you can add to the url in the above examples:

&zoom=default zoom
&vw=map type (0=street, 1=satellite, 2=hybrid, 3=terrain, 4=topo)
&entry_id=entry_id (map will automatically zoom in on that entry)

Never remove the simple=1 or you will get all the postholer banners associated with the postholer map site.

Good luck on you web mapping!

Site Admin
Posts: 739
Joined: Mon Apr 17, 2006 11:30 am
Location: Crescent City, CA

Return to Postholer Google Maps

Who is online

Users browsing this forum: No registered users and 1 guest