<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I don't think anyone has tried anything like that (using the Google
Maps API directly), and I doubt it would work. GeoMoose uses
OpenLayers as the underlying mapping library and I suspect that
manipulating the Google Maps API directly would conflict with
OpenLayer's use of the API.<br>
<br>
Your best bet would be to add a vector layer to GeoMoose with your
point or create a popup.<br>
<br>
<div class="moz-cite-prefix">On 07/20/2015 09:36 PM, Simon Gathuri
wrote:<br>
</div>
<blockquote
cite="mid:229554652.1544518.1437446183017.JavaMail.yahoo@mail.yahoo.com"
type="cite">
<pre wrap="">Am trying to put a point marker at lat,long (-1.243,36.847) using google map Api. This code doesnt seem to work in geomoose. It displays the map well but i dont see the marker. I dont know where am getting wrong.
<style>
html, body, #map-canvas {
height: 100%;
margin: 0;
padding: 0;
}
</style>
<script src=<a class="moz-txt-link-rfc2396E" href="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true">"https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true"</a>></script>
<script>
function initialize() {
var myLatlng = new google.maps.LatLng(-1.243,36.847);
var mapOptions = {
zoom: 4,
center: myLatlng
}
var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title: 'test'
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Geomoose-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geomoose-users">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a></pre>
</blockquote>
<br>
</body>
</html>