Glad you got it working.
I'll update the Gmap4 documentation to point out that in order to use the new 'Earth' map view, the Google Earth browser plug-in must be installed.
Printable View
The only way I was able to get the gmaps to work on my mac, in any browser, cache cleared or not, was by installing the google earth plugin. So its required to use the maps at all or just for the 'earth' map view? I love those gmaps but I'll have to go back to plain old google maps with an optional link to the gmap if thats the case. Don't want to have my website appear broken to people who haven't installed the google earth plugin. :fitz:
I agree with you. This problem obviously took me by surprise.:facepalm1: Here's the plan.
1. I'm in the process of tweaking Gmap4 so everything will work fine as long as the user does not try to look at the Earth view.
2. I will update all my docs, including the message that appears on the screen when the user clicks Earth
3. The prior version of Gmap4 is here: http://www.mappingsupport.com/p/gmap4_2_1_1.php
Awesome, Joseph. I'm going to put a link giving you credit for gmap4 under each map in my TR's from now on. Great work you do. :hail2thechief:
Thanks for the kind words.
I'm working on wrapping my brain around this.
If anyone here is having trouble with the production version of Gmap4 (http://www.mappingsupport.com/p/gmap4.php)
and has not installed the Google Earth browser plug-in, then please see if you can open the following map.
This is a tweaked version of Gmap4.
http://www.mappingsupport.com/test_g...Ridge.gpx&t=t2
After the September 12th update to Gmap4 I heard from a handful of people that this new version gave them a blank screen and nothing else. For most people the new version worked fine but for an unfortunate few it did not. I want to thank those that spoke up. After all, when things work fine for me, I have no way of knowing that they do not work fine for you unless you tell me. The best way to reach me is to e-mail through my contact page: http://www.mappingsupport.com/p/gmap4_contact.html
Late today I updated the Gmap4 code. If you click Menu ==> About then you will see the date September 14, 2011 (or later).
If you are still having trouble viewing maps with Gmap4, then I have a favor to ask. In addition to updating the code I also put together a short list of easy things that you can try to get the latest version of Gmap4 working on your system. Here’s the favor: Please download the latest copy (dated September 14, 2011) of the ‘Help’ file (http://www.mappingsupport.com/p/gmap4_help.pdf) and search that file for ‘tips on flying’. Near the end of that section you will see a heading that starts “Background...”. That section gives you a peek under the hood and suggests several easy/quick things you can do to try and get the current version of Gmap4 working on your system.
Some of those suggestions have worked for others, so I hope if you are having problems that you take a few minutes and give them a try. And if nothing else works, then the last suggestion gives you a link to the prior version of Gmap4 which does not include the new ‘Earth’ feature which seems to be the source of most of the problems.
But since being able to fly over your GPS track (or any other data file) in 3D is easily the coolest feature in Gmap4, I most certainly hope you are able to convince your system to run the current version of Gmap4 so you can waste as much time as I have flying here and there. It’s addictive but - hey - you’ve been warned.
Gmap4 has been updated to version 2.1.6 dated September 17, 2011.
Homepage: http://www.mappingsupport.com/p/gmap4.html
Reminder: Since Gmap4 lives in the cloud (1) you never have to download or install Gmap4 and (2) you are always automatically using the latest version of the code. But if Gmap4 does not seem to work then please clear your browser’s cache and try again. To see the Gmap4 version number you can click Menu ==> About on any map.
This update fixes the ‘blank screen’ problem that some users experienced after the September 12th update. If you experienced that problem, then please try Gmap4 again.
In order to use the new 3D ‘Earth’ view, your computer system needs to have the Google Earth browser plug-in installed. The Gmap4 code now checks to see if your system already has this plug-in installed. If your computer system does not have this plug-in installed, then you will see a message telling you that and a link to Google where you can download the plug-in if you decide to install it. If you decide to install the plug-in, please follow the instructions in that message. You need a broadband connection and a reasonably modern computer to use the 3D ‘Earth’ view.
If you decide to not install the plug-in, simply close the message window. You can continue using all the other features of Gmap4 except the ‘Earth’ view.
@Joseph, a couple of questions. I've noticed that the latest version of gmap doesn't zoom the map out to show the entire tracks but rather one or steps in. Is there a way to set the zoom level? A good example of it defaulting to one zoom level too many can be found here: http://backcountrypost.com/?p=1189. Also, it seems to be converting the icons in my latest map from the ones I've set to plain old blue google markers. Any ideas? See this TR map for example: http://backcountrypost.com/?p=1218 compared to the actual google map below:
Viewing on a mobile device? Click this link to open the map: http://maps.google.com/maps/ms?msid=214533597045798101523.0004acdd42f071dfed5a7&msa=0&ll=40.671785,-110.839691&spn=0.160924,0.166683
I looked at the source code for http://backcountrypost.com/?p=1189
Both of your Gmap4 links specify &z=14.
Gmap4 used zoom level 14 because you told it to. :facepalm1:
Simply delete &z=14 and Gmap4 should automatically set the right zoom such that the map is as detailed as possible but still holds all your data.
Use this link:
http://www.mappingsupport.com/p/gmap...ba6cf33da&t=t2
Regarding the markers, here's some background.
When you make a Google mymap and save it, google actually saves your map as kml file.
You can download Google's kml file via this link:
http://maps.google.com/maps/ms?msid=...a6cf33da&msa=0&output=kml
IMHO, that kml file is not well-drafted.
You can gain much better control over your maps if you look at the appendix to the Gmap4 Help file: http://www.mappingsupport.com/p/gmap4_help.pdf
That appendix and the examples in it will teach you how to build your own KML files.
Consider using this workflow:
1. Build your map as a Google MyMap
2. Download that mymap from Google as a KML file
3. Use one of the sample KML files in the appendix and paste your data over mine
4. Copy the track coords from Google's KML file and paste them into your KML file
5. Copy the coords for each marker from Google's KML file and paste them into your KML file.
Just follow the KML examples in the appendix and you will quickly learn how to whip out KML files.
Then put your KML files online and display them with Gmap4.
Thanks, Joseph. I didn't realize the zoom level was also in the URL. The markers changing still doesn't make much sense though. It seems a lot easier to me to just make my very simple map in Google Maps and then paste the MSID into the gmap URL. It's not like I'm doing anything complicated, just dropping a couple of markers. And I really don't understand why the markers on all of my old maps are still showing as they indicate on Google Maps but all new maps convert to plain blue markers in GMap.
I just made a new MyMap.
I added one 'tent' icon.
I saved the map, got the msid and looked at it with Gmap4 and I saw....google's default blue paddle.
Conclusion: Google broke something at their end.
See last post in this thread for a suggested fix.
http://www.google.com/support/forum/...768eb061&hl=en
Here are a whole pile of icons you can copy:
This page shows many symbols that Google is hosting:
http://hohonuuli.blogspot.com/2007/0...z-letters.html
Also you might post here. Maybe there are other solutions:
http://www.google.com/support/forum/...3acfcc52&hl=en
Gmap4 has been updated to version 2.2. The full list of changes is posted on the Gmap4
I am getting broken maps? http://www.bogley.com/forum/showthre...9-to-your-post
http://www.bogley.com/forum/showthre...id=Trip_Report
It looks like the Bogley site has changed how it works under the hood when you try to add iframe tags in your post. That bogley change has broken Gmap4.
To put a link (such as a Gmap4 URL) in an iframe you hi-light the link and then click the button that is a red paddle with the little diskette image.
Bogley does produce an iframe and does launch Gmap4.
Problem: Bogly adds an extra URL parameter to the end of the Gmap4 URL (&output=embed). That extra URL parameter breaks Gmap4.
I realized what happened. Earlier this month I updated the Gmap4 production code. One of the new things I added is stronger internet security.
As part of those improved security features the current version of the production code will display an error message if the Gmap4 URL includes a parameter that Gmap4 does not recognize. Earlier versions of the production code did not generate that error message.
That is the reason why Gmap4 used to work OK in iframes on Bogley but no longer does so.
What now?
Any chance Bogley could stop adding that unwanted parameter to the Gmap4 links?
If I take this URL:
http://www.mappingsupport.com/p/gmap4.php?t=h
and wrap it in your SAVEDMAP tags then some piece of code somewhere adds "&output=embed" to the Gmap4 URL.
That unwanted URL parameter causes Gmap4 to produce an error message.
Only happens on Bogley.
Gmap4 runs fine in iframes on various other forums.
The other forums are most likely using a different version of the Google Map embed. Can you link to another example forum for reference? Are they using a straight iframe from Google Maps? Ours isn't quite that simple, just a security precaution. There are ways to embed malicious sources in the simpler iframes, then everybody viewing the page(s) is vulnerable.
But that being said, our Google Map embed code hasn't been touched by us since it was first implemented here. So it's either a conflict that has always existed or Google must have changed something. :ne_nau:
Just to be certain we are on the same page, I mis-spoke when I opined that things might have changed at Bogley. Instead, things changed because I tightened Gmap4's internet security.
OK, I figured out what's going on.
This post explains how to embed a "Google map"
http://www.bogley.com/forum/showthre...-a-bogley-post
Key point: A Google map is not the same thing as a Gmap4 map. Yes, Gmap4 uses the Google map API but it is still not the same critter as a "Google map".
When a Google map is embedded the URL must include &output=embed. So naturally Bogley has a widget that does that. But that widget no longer works with Gmap4 since it tacks on a URL parameter that causes Gmap4 to throw an error message. Gmap4 simply does not need the &output URL parameter in order to be embedded.
Would it be possible for Bogley to make a widget to embed Gmap4? Just copy the Google Map widget and leave out that &output URL parameter.
My impression is that at least some of the other websites that allow Gmap4 to run in plain iframe tags have a whitelist of apps that are so allowed.
Example (and link to Gmap4 beta code that can locate you on a smartphone):
http://www.nwhikers.net/forums/viewtopic.php?t=7995683
Code: <iframe style="width:100%;height:600px"
src="http://www.mappingsupport.com/p/beta/gmap4_263.php?coord=off&ll=47.62403,-122.058341&t=h&z=9"
width="100%" height="600px"></iframe>
Many thanks.
Yeah I was just thinking about the existing threads with embedded Gmap4 maps. Ouch!
I guess the bottom line is that high quality internet security is a good thing for all.
The Gmap4 production code is now version 2.3. This is the first version that includes special features for smartphones and other mobile devices.
1. Gmap4 can now find your location on the map. This service will use some or all of:
* Your IP address
* Cell towers
* Wi-fi hotspots
* Any GPS chip in your phone or other mobile device
Simply open any map in your phone
The Gmap4 code has been updated to version 3.0. There are two new
Sorry for the HUGE delay on this, but I think I just fixed it on our end. Unfortunately it will take a little manual editing to do, to change out SAVEDMAP with "gmap4"
So the new tag is "gmap4", just use it the same way as previously, but swap out savedmap with gmap4
I've edited @Joseph 's first post to test this as well.
Let me know how it goes. Here's a test embed:
Yippee - lookin' good - thanks!
Well except for the "Hodges".
I have no clue where that's coming from.
Hodges is what I named the map in Google maps.
EDIT: I just noticed it's on your map too. Looks like I need to tweak it a bit more.
Hey I've got another question, I've got a KMZ that will embed, but zoom level 1, and even 0 still aren't far enough out. Is there a way I can re-edit the KMZ to make it zoomed out even further?
Zoom level 0 is as zoomed out as it gets.
But that zoom level gives you repeats of the continents all on the same map.
Seems like your file ought to fit since the whole planet is on the map (times 3).
Maybe I'm not following...
Here is another tip for you wannabe map makers. This tip pertains to map symbols (aka markers).
Each symbol has an "anchor point".
The Google Map API (Application Program Interface) places symbols on the map such that the symbol's anchor point is at the latlng you assigned to that symbol.
By default, the anchor point for a symbol is the middle of the bottom edge of the symbol image. <== Better read that again.
Thus, if your map displays a simple paddle image, then the bottom tip of the paddle is at the latlng you specified.
So far so good. But.....
Google is hosting a bunch of symbols that you can use on your map. Here is one place to find some of those URLs:
http://hohonuuli.blogspot.com/2007/0...z-letters.html
Caution: Some of those symbols have their anchor point in the middle of the image! A good example of this is the slanted push pins. If you use those push pin images on your Google map then the tip of the pin is *not* going to be at the latlng you specify. Instead, a point somewhere near the middle of the image will be at the latlng you specified since that point is the symbol's "anchor point".
If your goal is to mark a spot on the map as best you can, then I recommend sticking with the straight up-and-down paddle images. If you open the above link and go to the bottom, there are some more interesting paddles.
If you find a paddle image you like but it is too dang big on your map - no worries. Just copy it, reduce its size with your favorite image editing program and put the smaller image online somewhere. I recommend that symbols be PNG files and Google Sites is a good place to host them.
@Slot Machine was asking how to convert to a KML, I just used Google Earth. When you are saving a KMZ, just choose the different filetype and choose KML instead. Certain KMZ files may not be zoomed correctly when embedding, where KML files seemed to work better. An example was the Canyon waypoints Slot Machine made here: http://www.bogley.com/forum/showthre...nyoneering-Map
Is there anyway to add code for the view to be in Hybrid mode?
Sweet! I got my map fixed: http://www.bogley.com/forum/showthre...!!!-%28Live%29
Now to find the others... :ne_nau:
Sure. The "t" URL parameter determines which map type is displayed when the map opens.
t Map type. (Default: &t=t1) The allowable values are:
m Street map from Google
s Aerial photo from Google
h Aerial plus street names from Google
t1 Terrain from Google (default)
t2 Topographic map from MyTopo (USA 1:24,000 & Canada 1:50,000)
t3 Topographic map from USGS & Microsoft - used to be called Terraserver (USA 1:24,000)
t4 (New) Topographic map from CalTopo.com & USGS (USA 1:24,000) <=== Best quality
To open Gmap4 with Google's hybrid view:
http://www.mappingsupport.com/p/gmap4.php?t=h&q=http://url_to_your_file
Something might be going on with Bogley's PHP script that serves up the attachment.
I tried to open slot's file in a new tab with this URL:
http://www.mappingsupport.com/p/gmap4.php?t=h&q=http://www.bogley.com/forum/attachment.php?attachmentid=51272&d=1329143759
By default, Gmap4 will center and zoom the map so that all of the data file is on the map.
But when I used the above URL, Gmap4 thought the map should be centered at latlng 0,0
This is an indication that the data file never reached Gmap4.
Can you check this on your end?
Recently Gmap4 was updated to version 4.1 and now includes a unique map-in-a-link feature that is worth mentioning. Anyone can now make a custom map and save their data right in a Gmap4 link. You do not need to save your data in a separate file such as a GPX or KML file. This may be the easiest and faster way for you to make a custom online topographic map.
To try out this feature:
1. Click Menu ==> Draw and Save
2. Click the map a few times to set draggable symbols and draw a line
3. Rightclick any symbol and select
Some of you already know that Gmap4 is a general purpose file viewing tool for GPX, TPO, KML, KMZ and a couple of other file types.
I have posted beta version 934 (June 13th) that lets Gmap4 also be a general purpose WMS viewer. Why might you care? At last count there were approximately 1.2 bazillion WMS servers out there and this beta code can display most of that data. Specifically, you can:
* Build a Gmap4 link to display multiple layers from multiple WMS servers
* Turn transparent layers on/off one at a time or all together
* Change the stacking order of transparent layers
* Display transparent layers on top of any basemap hardcoded into Gmap4 or on top of any basemap added via WMS
As a software developer, it is always exciting to develop a feature that is first-of-its-kind. If there is any other software that lets you "click link - see WMS data", I would like to know about it.
For example, here is a link that starts the Gmap4 beta code and displays a basemap which is the Google aerial centered near Denver and a WMS overlay showing the boundaries of federally owned land. Zoom in for more detail. This boundary data covers the USA. A fast way to shift the map to your own area is Menu ==> Search.
Link to federal land boundary map
The Gmap4 beta page has more examples and documentation showing step-by-step how to make your own Gmap4 links to display any WMS data you wish to see.
http://www.mappingsupport.com/p/gmap4_beta.html
The example maps on the beta page include:
* USA map with current weather radar
* NOAA coastal navigation charts including the most detailed charts
* Current forest fire boundaries
* Index to 1:24,000 scale topos for USA
* Index to 1:50,000 scale topos for Canada
* and more
There might be some kind of limit as to how complex(?) these maps can be. Gmap4 uses the Google map API but Google