I added text, but map wil not display at all.
see script below Thanks for your help!
.......................
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/
>
<title>Google Maps Example</title>
<script src="http://maps.google.com/maps?
file=api&v=2&key=ABQIAAAAJyjPw8SMz53Sl5MslKc6PhTHkjceoYOI_KrVbJoE81w8w6bwfBROrj8aS0EQCRU1nCh-
sk9r3MSkBA" type="text/javascript"></script>
<script src="http://freightbywaterdatabase.org/egeoxml.js"
type="text/javascript"></script>
</head>
<h2>Freight By Water.United Kingdom Ports of Call Satellite
Map."Interactive Map"</h2>
<body>
<table border=1>
<tr>
<td>
<div id="map" style="width: 600px; height: 400px"></div>
</td>
<td width = 150 valign="top" >
<div id="the_side_bar"></div>
</td>
</tr>
</table>
<form action="#">
<input type="button" value="Hide" onclick="exml.hide()" />
<input type="button" value="Show" onclick="exml.show()" />
</form>
<script type="text/javascript">
//<![CDATA[
var map = new GMap2(document.getElementById("map"));
map.setMapType(G_HYBRID_MAP);
map.setCenter(new GLatLng(54, -4), 6);
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.enableScrollWheelZoom();
map.enableGoogleBar();
//var kml = new GGeoXml("http://freightbywaterdatabase.org/
unitedkingdom.xml");
//map.addOverlay(kml) var exml = new EGeoXml("exml", mmap, "http://
freightbywaterdatabase.org/unitedkingdom.xml",
{sidebarid:"the_side_bar",sortbyname:true,iwwidth:
300,directions:true});
exml.parse();
//]]>
</script>
On Mar 17, 1:26 am, "[email protected]" <[email protected]>
wrote:
> On Mar 16, 7:41 pm, Raymundo <[email protected]> wrote:
>
> > Looks like I am getting a few results, but have not accomplished my
> > kml markers on my sidebar menu.
>
> You removed this:
> {sidebarid:"the_side_bar",sortbyname:true,iwwidth:
> 300,directions:true}
> from the call to EGEoXml. That is what tells it to add the side bar
> ( and sort it by name and to add directions to the infoWindow...)
>
> -- Larry
>
> > Thanks!!
>
> > On Mar 16, 9:43 pm, "[email protected]" <[email protected]>
> > wrote:
>
> > > On Mar 16, 6:27 pm, Raymundo <[email protected]> wrote:
>
> > > > I included the path to my xml file which is really my kml file renamed
> > > > to define it?
> > > > I am still missing it ???
> > > > or
> > > > should I be including the map link for my maps which I am trying to
> > > > understand fromhttp://econym.org.uk/gmap/egeoxml.htm
> > > > thanks again
>
> > > > On Mar 16, 7:56 pm, "[email protected]" <[email protected]>
> > > > wrote:
>
> > > > > On Mar 16, 4:55 pm, "[email protected]" <[email protected]>
> > > > > wrote:
>
> > > > > > On Mar 16, 4:03 pm, Raymundo <[email protected]> wrote:
>
> > > > > > > I have updated my url, please take a look at it. (The kml is now
> > > > > > > loading so I really need help with correcting my script to add
> > > > > > > kml to
> > > > > > > my sidebarmenu)
>
> > > > > > You fixed #1 but not #2
> > > > > > (I get an error 'EGeoXml' is undefined)
>
> > > 2. the line that includes the key is incomplete, therefore egeoxml.js
> > > is never included...
>
> > > This line:
> > > <script src="http://maps.google.com/maps?
> > > file=api&v=2&key=ABQIAAAAJyjPw8SMz53Sl5MslKc6PhTHkjceoYOI_KrVbJoE81
> > > w8w6bwfBROrj8aS0EQCRU1nCh-
> > > sk9r3MSkBA"
>
> > > is incomplete. It should be:
> > > <script src="http://maps.google.com/maps?
> > > file=api&v=2&key=ABQIAAAAJyjPw8SMz53Sl5MslKc6PhTHkjceoYOI_KrVbJoE81
> > > w8w6bwfBROrj8aS0EQCRU1nCh-
> > > sk9r3MSkBA" type="text/javascript"></script>
>
> > > Once you get your page to actually use egeoxml.js, you will be able to
> > > move forward...
>
> > > -- Larry
>
> > > > > This file does not exist:http://freightbywaterdatabase.org/test001.xml
>
> > > > > > -- Larry
>
> > > > > > > thank you I really appreciate your support
>
> > > > > > > On Mar 16, 6:42 pm, "[email protected]" <[email protected]>
> > > > > > > wrote:
>
> > > > > > > > On Mar 16, 3:08 pm, "[email protected]"
> > > > > > > > <[email protected]>
> > > > > > > > wrote:
>
> > > > > > > > > On Mar 16, 2:55 pm, Raymundo <[email protected]> wrote:
>
> > > > > > > > > > I have added to my kml , but I can not figure out why my
> > > > > > > > > > kml doesn't
> > > > > > > > > > display.
>
> > > > > > > > > > Also I would like to use use EGeoXml to to add the kml to
> > > > > > > > > > mysidebar.
>
> > > > > > > > > > Thanks for your help.
>
> > > > > > > > > > var exml = new EGeoXml("exml", mmap, "test001.xml",
> > > > > > > > > > {sidebarid:"the_side_bar",sortbyname:true,iwwidth:
> > > > > > > > > > 300,directions:true});
> > > > > > > > > > exml.parse();
>
> > > > > > > > > This is not what is at the URL you posted...
> > > > > > > > > Please either update the copy online or post a link to the
> > > > > > > > > version
> > > > > > > > > that uses egeoxml that doesn't work.
>
> > > > > > > > BTW - the current version you have posted a link to has a
> > > > > > > > couple of
> > > > > > > > major problems:
> > > > > > > > 1. there is text before the <!DOCTYPE ...> declaration
> > > > > > > > 2. the line that includes the key is incomplete, therefore
> > > > > > > > egeoxml.js
> > > > > > > > is never included...
>
> > > > > > > > -- Larry
>
> > > > > > > > > > On Mar 5, 5:35 pm, Ralph Ames <[email protected]> wrote:
>
> > > > > > > > > > > This might helphttp://econym.org.uk/gmap/egeoxml.htm
>
> > > > > > > > > > > Ralph- Hide quoted text -
>
> > > > > > > > > > - Show quoted text -- Hide quoted text -
>
> > > > > > > > > - Show quoted text -- Hide quoted text -
>
> > > > > > > - Show quoted text -- Hide quoted text -
>
> > > > > > - Show quoted text -- Hide quoted text -
>
> > > > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---