On May 12, 1:26 pm, Ed Boes <[email protected]> wrote:
>
> Code removed:
> <input id="url" value="" size="60"/>
> <input type="button" value="Add" onClick="addGeoXML();"/>
>
> Why would I lose my layers if I remove the two lines of code above?
What error message do you get in the Error Console?
I would guess that removing the <input id="url"> would cause this line
document.getElementById("url").value = "http://";
to produce a message indicating that the element with id="url" doesn't
exist and can't be set. At that point your code stops and it never
gets to add the layers you have specified. Remove that line as well.
Note: It's **always** best to give a link to *your* map which doesn't
work rather than an example which does. Trying to work out what could
have gone wrong is more difficult than seeing the error message which
tells you what's gone wrong.
--
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.