text i google maps
HejHar denne følgende kode:
<script src="js/jquery-1.2.6.pack.js" type="text/javascript"></script>
<script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=ABQIAAAAJRmvvTTnnSiXwaUyC-fcKRQbZb0p0-XqbSqhqDNsA2oIn3HKFhTeqUuo9V13cQ0ZRwdw5EwXpKoV-g"
type="text/javascript"></script>
<script type="text/javascript">
$(function() { // when the document is ready to be manipulated.
if (GBrowserIsCompatible()) { // if the browser is compatible with Google Map's
var map = document.getElementById("Map"); // Get div element
var m = new GMap2(map); // new instance of the GMap2 class and pass in our div location.
m.setCenter(new GLatLng(55.083167, 9.208561), 13); // pass in latitude, longitude, and zoom level.
m.openInfoWindow(m.getCenter(), document.createTextNode("text here")); // displays the text
m.setMapType(G_NORMAL_MAP); // sets the default mode. G_NORMAL_MAP, G_HYBRID_MAP
m.addControl(new GLargeMapControl()); // creates the zoom feature
}
else {
alert("Your Browser is not compatible with google maps!");
}
});
</script>
Mit problem er, at jeg ikke kan lave et <br/> i min textnode. Hvordan gør jeg dette!?
Tak på forhånd!