How to hide the initial marker on map

Feb 2, 2009 at 3:11 AM
Is it possible to display the map without any markers???
Feb 3, 2009 at 9:27 AM

I think the answer is yes and no.  Yes it should be possible to display a google map without any points but no I don't think its possible to do it with this web part.  I'll put it down as a possible future feature.

Feb 3, 2009 at 11:23 PM
Thanks Mike,
i appreciate your quick response. I think it will be very useful if the map can be displayed without having specify any markers, especially directions part. I am using this webpart on our first public sharepoint website for our holiday resort on an island. So basically i just wanted to show a satellite or hybrid map view of the island without any markers or directions.

Feb 4, 2009 at 7:54 AM

One option would be to just drop the following code into a content editor webpart

#map, #directions {height:500px; width:600px;}

<div ID="map"></div>
<script type="text/javascript" language="javascript" src=";v=2&amp;key=YOUR_GOOGLE_MAPS_API_KEY"></script>

<script language="javascript" type="text/javascript">

if (GBrowserIsCompatible()) {

var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(53.285919,-4.337869),10);

setTimeout('map.setCenter(new GLatLng(53.285919,-4.337869),10)','750');


You can edit the latitude and longitude and the zoom of the map - the bits in bold - to make them match your requirements.  You can get the Lat and Long from Google Earth or from any GPS receiver.  You can also change G_NORMAL_MAP to G_SATELLITE_MAP  or G_HYBRID_MAP.