Postholer.Com


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

PCT Map on your website

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

Moderator: postholer

PCT Map on your website

Postby postholer » Wed Feb 18, 2009 6:18 pm

Here's how to put 2 different types of map on your website, pop-up and embedded. Just cut and past the code into your html.

The first is a simple PCT map in a pop window:

Code: Select all
<a href="#" onclick="window.open('http://postholer.com/gmap/gmap.php?trail_id=1&simple=1','popMap','toolbar=0, menubar=0, location=0, status=0, scrollbars=1, resizable=1, width=450, height=375');">Pacific Crest Trail Map</a>


The next will actually embed the map into your web page:

Code: Select all
<div style="background-color: #eee; padding: 10px; border: 1px solid black;">
<iframe scrolling="no" frameborder="0" width="450px;" height="375px" name="myMapFrame" id="myMapFrame" src="http://postholer.com/gmap/gmap.php?trail_id=1&simple=1"></iframe>
</div>




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

Postby Wizard_Mentor » Tue Apr 17, 2012 3:42 pm

Scott,
Wow, this is really great!
I want to embed the map for an application, and this was so easy!

Is it possible to...
set default for the embedded map to "Terrain" instead of "Map"?
set default for the embedded map to "Show Distances"?
set default for the embedded map so that "Mail Drops" OR "Points of Interest" are shown?
set default for the embedded map so that "Mail Drops" AND "Points of Interest" are shown?

thanks in advance,
Tony
Wizard_Mentor
 
Posts: 7
Joined: Thu Jun 03, 2010 9:15 pm

Postby postholer » Tue Apr 17, 2012 4:48 pm

Thanks for the kind words!

set default for the embedded map to "Terrain" instead of "Map"?


Nope, start with basic default map.

set default for the embedded map to "Show Distances"?


Yes, I would not do this, HUGE overhead. Add to url:
&dist=1

set default for the embedded map so that "Mail Drops" OR "Points of Interest" are shown?


Add to url (1 = mail drops, 6 = points of interest):
&markertype=1

set default for the embedded map so that "Mail Drops" AND "Points of Interest" are shown?


Nope. Only one markertype at a time.

Hope that helps!

-postholer
postholer
Site Admin
 
Posts: 732
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

cron