Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - jimbowilly

Pages: [1]
1
TopoFusion Pro / Land Owndership maps
« on: November 16, 2024, 08:21:47 AM »
I just upgraded to the new version, 5.8,  but I cannot get either of the land ownership maps to download.

I've tried "Land Ownership BLM" and "Land Ownership US". I'm trying to view areas in central and SW Arizona

Firewall is wide open for Topofusion. No Proxy server. Other maps work fine, its just these two. They start and then downloading becomes disabled and I get that dialog box.

Is there a know issue for this?

2
User Projects / Google Maps and Topofusion
« on: December 26, 2010, 09:03:11 AM »
Here is a step by step demo of how to use Topofusion to create a interactive Google map with the GPX track for displaying on the web.

This assumes:
1) You know how to use Topofusion.
2) You know how to create websites using HTML and how to send the files to a web server.
3) You recognize JavaScript. You don't need to know JavaScript, but just the ability to know what it is within the HTML. You also will be making changes within the JavaScript.

We'll be doing this in Google Maps V3. For reference, the complete rundown can be found here. http://code.google.com/apis/maps/documentation/javascript/basics.html but you don't need this just yet.

Let's get started with the Google maps version of "Hello World" from the Google site. Open this link: http://code.google.com/apis/maps/documentation/javascript/tutorial.html#HelloWorld

Now create a new web page in you favorite html editor. I use Notepad.

1) Copy and paste the sample code (from below or the google link) into blank website.  
2) On line 11, change where it says sensor=set_to_true_or_false to sensor=false. (This isn't necessary if you used the code from below).
3) Save this file as mapv3.html
4) Upload it to you web server.
5) Open in a browser. It should show a map of Sydney Australia, like it does here. http://code.google.com/apis/maps/documentation/javascript/examples/map-simple.html

If it doesn't work, check your code. It should look like this:

Code: [Select]
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
  html { height: 100% }
  body { height: 100%; margin: 0px; padding: 0px }
  #map_canvas { height: 100% }
</style>
<script type="text/javascript"
    src="http://maps.google.com/maps/api/js?sensor=false">
</script>
<script type="text/javascript">
  function initialize() {
    var latlng = new google.maps.LatLng(-34.397, 150.644);
    var myOptions = {
      zoom: 8,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    var map = new google.maps.Map(document.getElementById("map_canvas"),
        myOptions);
  }

</script>
</head>
<body onload="initialize()">
  <div id="map_canvas" style="width:100%; height:100%"></div>
</body>
</html>


To know what's going on here, read through the Google website where we grabbed this code. But we'll just keep making changes to what we have.

Instead of Sydney, let's make a map of an area we want to see. In the website we're creating, change the latitude and longitude (line 15) to an area with which you're familiar or follow me. I'm changing it to 33.5782 and -112.0389, which will show the Phoenix Mountain Preserve in Arizona.
I also want to have it zoomed in some more, so I will change the zoom level on line 17 from 8 to 14. Smaller numbers zoom out, larger numbers zoom in.

Make these changes, and upload to the web server. Your map should now look similar to the first attachment below which is showing the lat/long I used. This is using Firefox and the image below has the buttons on the right cropped off.

So now let's shrink the map up some, add a heading and change the map to a terrain view.

1) on line 19, change ROADMAP to TERRAIN
2) on or around line 29 that reads id="map_canvas" style="width:100%; height:100%">, change both percentages to 50%
3) right after the body tag, add a descriptive H1 heading.

My code now looks like this:

Code: [Select]
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
  html { height: 100% }
  body { height: 100%; margin: 0px; padding: 0px }
  #map_canvas { height: 100% }
</style>
<script type="text/javascript"
    src="http://maps.google.com/maps/api/js?sensor=false">
</script>
<script type="text/javascript">
  function initialize() {
    var latlng = new google.maps.LatLng(33.5782, -112.0389);
    var myOptions = {
      zoom: 14,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.TERRAIN
    };
    var map = new google.maps.Map(document.getElementById("map_canvas"),
        myOptions);
    
  }

</script>
</head>
<body onload="initialize()">
<h1>Map of Phoenix Mountain Preserve</h1>
<div id="map_canvas" style="width:50%; height:50%"></div>
</body>
</html>

And your map web page should look something the second attachment.

Now lets add a track. This is easily done using a KML file.

Open Topofusion and load a gpx track you want to display. Right click on it in the active maps window and Save As a KML file. Take this KML file and upload it to your web server.

Now, within your HTML add the following two lines on or about line 24. They should be right after the line that reads   myOptions); in my example above:

Code: [Select]
var kmlfile = new google.maps.KmlLayer('http://(your domain)/(your kml file)');
   kmlfile.setMap(map);

You need to replace (your domain) with your domain, and (your kmlfile) with your full kml file name. The file names on some web servers are case sensitive. If you're not sure, make the file names match exactly.


Save the file and upload it. You should see your gpx track mapped in the google map. Mine looks like the third attachment

The code looks like this (after wiping out my domain name, too much non-working stuff there I would rather not share at this point   ;D  ":

Code: [Select]
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
  html { height: 100% }
  body { height: 100%; margin: 0px; padding: 0px }
  #map_canvas { height: 100% }
</style>
<script type="text/javascript"
    src="http://maps.google.com/maps/api/js?sensor=false">
</script>
<script type="text/javascript">
  function initialize() {
    var latlng = new google.maps.LatLng(33.5782, -112.0389);
    var myOptions = {
      zoom: 14,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.TERRAIN
    };
    var map = new google.maps.Map(document.getElementById("map_canvas"),
        myOptions);
  
  var kmlfile = new google.maps.KmlLayer('http://www.xxxxxxxxxxxxxxxxx.org/2010-12-12T100map.kml');
   kmlfile.setMap(map);
    
}

</script>
</head>
<body onload="initialize()">
<h1>Map of Phoenix Mountain Preserve</h1>
<div id="map_canvas" style="width:50%; height:50%"></div>
</body>
</html>


That's all for now. Later I will show how to add a topo option to the map selector. I did my original work with Google maps V2. They have made some significant changes in v3, so I have to do some more research.  

3
TopoFusion Pro / Renaming GPX files
« on: November 13, 2010, 09:31:15 AM »
I was trying to rename some GPX files from within the program.  In the past I've done this in the middle window at the bottom; the window to the right of the directory tree and to the left of the active file window.

When I tried to do it this morning, it looked like it was working. The entry has the little box around it, and you could edit the name in typical Windows fashion. The name even appeared to change to the new name when I was finished.

However the file was never renamed. Upon closing Topofusion and restarting, the files now appeared with their original names.

I'm wondering if this is a bug or if I have some system settings mucked up on my end.

Thanks



4
TopoFusion Pro / Splitting a large GPX
« on: November 07, 2010, 09:17:09 AM »
What is the best way to break out a section of a large track and make it a smaller separate track?

I've tried using the scissors too. That seems to be what I need, but I can't figure it out.

I've also tried using the Select Point tools and also selecting individual track points from with the track Properties, but I can't figure out how to save either one.

Thanks

5
Feature Requests / Save As KML
« on: December 19, 2009, 07:19:51 AM »
Scott,

The next time you are in the code that outputs the KML file, could you please add the following tag to the KML output when there are associated pictures with the track from Photofusion.

<description>
<![CDATA[
<a href="(photo file name)" target="_blank">
<img src="(thumbnail photo file name)" />[/url]
]]>
</description>


Right now the kml looks like this:

<Placemark>
<name>IMG_2277.JPG</name>
<styleUrl>#m_ylw-pushpin_copy1</styleUrl>
<Point>
<coordinates>
-111.977781,35.143602,0
</coordinates>
</Point>
</Placemark>

and the <description> tag would go in right below the <styleUrl> tag,

This would allow the pictures to appear in google maps on the KML overlay.

Thanks


6
Feature Requests / USGS StreamFlow guages
« on: January 31, 2009, 07:18:25 AM »
It would be cool to have little icons on the map showing the USGS stream/river guaging stations. These could  link or somehow display current streamflow data from that station utilizing feeds from the USGS.

This could be toggled on/off with a button at the top.

7
Feature Requests / Various new feature suggestions
« on: January 29, 2009, 07:03:27 AM »
1) Be able to select a section of a track profile and have it highlight on the map page, or vise-versa. Also, on the profile page show stats for just that portion that is selected, ie. distance, average grade, average speed, elevation gain/loss, etc. Topofusion currently shows this for any given point on the profile, but not for a selected segment.   

2) From one of the weather feed sites (Mesonet, wunderground) locate any nearby weather stations and display a weather icon on the map.  (This could be one of the buttons on top). Clicking on this icon would open the weather detail for that station.

Here is an example from the national weather service displaying mesonet stations:

http://www.wrh.noaa.gov/mesowest/mwmap.php?wfo=fgz&map=fgz

This could be useful if someone wants to see what the temperature/humidity will be like for a trail they are about to go to. Currently to do this you have to go to google maps or mapquest and find a nearby town. Then you have to search for that town at weather.com or something else to check the weather there and hope the info it provides is close to where you are actually going. Often it's not the same location as you searched, so it's back to google maps to see how far away the location it provided actually is from where you're going.



8
Feature Requests / HTML Export Feature Upgrades
« on: January 28, 2009, 07:01:45 AM »
I like the HTML export feature. To make it really flexible you could have Topofusion populate an HTML-like template (filled with customized Topofusion variables) to produce any layout of HTML the user would desire.

The user could define within the Topofusion HTML setup, which "template" file they would like and it's corresponding output file extension (They might want a .PHP extension instead of a .html).The template file itself would contain valid HTML/PHP/whatever, except that instead of actual GPS track data, it would have these variables.

For example, right now in the Topofusion generated HTML file, the GPX file name is in H2 tags and centered. Say I would instead want it in H1 tags and left justified. Well I could just change the HTML file now, but I would have to do this every time.

Instead, lets say the template file is called rides.htq. Within THIS file I would have something like:
<h1 align="left">^gpxfilevariable^</h1>


(The variable is ^gpxfilevariable^ which corresponds with the file name of the gpx file. You could have many variables ^heartrate^ ^distance^ ^avgspeed^ that the user could place anywhere in the template they like.)

Topofusion would see this variable and replace it with the gpx file name so it looks like:
<h1 align="left">Jan222009ride.gpx</h1>


After replacing ALL variables within the template, it would save the new file (with real data rather than variables) as an html/php file however the user has chosen in the setup.

So continuing with my example, rides.html is generated from rides.htq. This new file, rides.html is a customized HTML file with the real data.

Then (new feature #2), the user could click on the new UPLOAD button to FTP the file to the web server.
 

 

9
TopoFusion Pro / Export View and Generate HTML
« on: January 25, 2009, 07:47:19 AM »
From some old threads I found a few requests to export a view that is larger than what is currently displayed on the screen.

Has this feature ever been added?

I also found an old thread that says you can generate the HTML file without having pictures. When I try to do this it doesn't work. Depending on what I try I get various warnings/errors, the end result being no HTML. Is this this still possible?

10
TopoFusion Basic / Waypoints in Profile
« on: January 18, 2009, 09:16:14 AM »
I just downloaded the demo yesterday and I'm starting to get use to the interface and different features.

One thing I haven't been able to do is to display the track waypoints in the profile view.

Is this possible? If so, how do you do that?

Thanks

Jim

Pages: [1]