Order Tray | Contact Us | Home | SIG Lists

[aprssig] Auto-Zoom with Findu?

John A. Ficke - WT4M wt4m at wt4m.com
Sun Aug 26 16:53:56 UTC 2007


Matt,

 

Unfortunately, none of those parameters, though passed to the gmap cgi
display now utilized at findu, seem to be recognized by the cgi...

 

Thus changing any of the parameters (other than the call) will not change
the map display in the least...

 

This is what the find cgi creates in the iframe:

 

<iframe
src="http://www.findu.com/cgi-bin/gmap.cgi?call=kb1ikn&gmap=7&terra=6&aprswo
rld=7&degree=.1" scrolling="no" width="720" height="551"></iframe>

 

And gmap cgi then delivers:

 

<HTML>

<HEAD>

    <script
src="http://maps.google.com/maps?file=api&v=1&key=ABQIAAAAl41nRYCH3VE0q-ZVEq
gYyBRF1Ehny2Il60uf9pjFdUMKW-CnhhSFwpox47TZwd0LuH4yudW4uaWXJw"
type="text/javascript"></script>

</HEAD>

<BODY onload="loadMap();">

    <div id="map" style="width: 700px; height: 500px"></div>

    <script type="text/javascript">

    //<![CDATA[

function loadMap(){   var map = new GMap(document.getElementById("map"));

   map.addControl(new GLargeMapControl());

   map.addControl(new GMapTypeControl());

   map.addControl(new GScaleControl());

   map.centerAndZoom(new GPoint(-68.77367, 44.83283), 5);

   var icon1 = new GIcon();

   icon1.image =
"http://www.findu.com/cgi-bin/gmapicon.cgi?call=KB1IKN&icon=/>";

   icon1.shadow =
"http://www.findu.com/cgi-bin/gmapicon.cgi?call=KB1IKN&icon=/>";

   icon1.iconSize = new GSize(90, 20);

   icon1.shadowSize = new GSize(1, 1);

   icon1.iconAnchor = new GPoint(8, 8);

   icon1.infoWindowAnchor = new GPoint(5, 1);

   var point1 = new GPoint(-68.77367,44.83283);

   var marker1 = new GMarker(point1, icon1);

   map.addOverlay(marker1);

   GEvent.addListener(marker1, "click", function() {
marker1.openInfoWindowHtml("KB1IKN<br> --- Report received  14 hours 31
minutes 48 seconds ago<br>   Altitude: 223"); });

 

}

   //]]>

   </script>

 

The use of Google Maps is experimental, comments are welcome. If you are
using Internet Explorer 6 and having problems, try lowering your security
settings...</BODY>

</HTML>

 

What is needed is a way to change the "5" in:

 

   map.centerAndZoom(new GPoint(-68.77367, 44.83283), 5);

 

Changing this value determines the level of zoom on the initial display.  It
doesn't appear that any parameters for the gmap cgi have been made available
at the website.

 

73,

John

WT4M

 

 

-----Original Message-----
From: aprssig-bounces at lists.tapr.org [mailto:aprssig-bounces at lists.tapr.org]
On Behalf Of Matt Hunter
Sent: Sunday, August 26, 2007 12:12 PM
To: TAPR APRS Mailing List
Subject: Re: [aprssig] Auto-Zoom with Findu?

 

Jason,

 

http://www.findu.com/cgi-bin/find.cgi?call=kb1ikn&gmap=2&terra=1&aprsworld=1
&degree=0.001

 

Check out the advanced parameters for all of the findu cgi's:

 

http://www.findu.com/cgi.html

 

 

Matt, KB1IKN

 

 

Jason Rausch wrote:

> When using the basic find.cgi:

> 

> http://www.findu.com/cgi-bin/find.cgi?ki4udd-15

> 

> Is there any kind of flag that can be added to that

> URL to force the map to zoom to a specific level upon

> loading, other than the default setting?

> 

> Thanks,

> Jason KE4NYV

> RPC Electronics

> www.rpc-electronics.com  

> 

> _______________________________________________

> aprssig mailing list

> aprssig at lists.tapr.org

> https://lists.tapr.org/cgi-bin/mailman/listinfo/aprssig

> 

> 

 

 

_______________________________________________

aprssig mailing list

aprssig at lists.tapr.org

https://lists.tapr.org/cgi-bin/mailman/listinfo/aprssig

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.tapr.org/pipermail/aprssig/attachments/20070826/9ce0942a/attachment.htm 


More information about the aprssig mailing list