var marker;
marker = new google.maps.Marker({
map: map,
icon: icon,
position: point,// here you provide longitude and latitude both
title: providername, // here you want to show any name
visible: true
}),
boxText = document.createElement("div"),
//these are the options for all infoboxes
infoboxOptions = {
content: boxText,
disableAutoPan: false,
maxWidth: 0,
pixelOffset: new google.maps.Size(-140, 0),
zIndex: null,
boxStyle: {
background: "url('http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/examples/tipbox.gif') no-repeat",
opacity: 1,
width: "180px"
},
closeBoxMargin: "12px 4px 2px 2px",
closeBoxURL: "http://www.google.com/intl/en_us/mapfiles/close.gif",
infoBoxClearance: new google.maps.Size(1, 1),
isHidden: false,
pane: "floatPane",
enableEventPropagation: false
};
var marker;
marker = new google.maps.Marker({
map: map,
icon: icon,
position: point,// here you provide longitude and latitude both
title: providername, // here you want to show any name
visible: true
}),
boxText = document.createElement("div"),
//these are the options for all infoboxes
infoboxOptions = {
content: boxText,
disableAutoPan: false,
maxWidth: 0,
pixelOffset: new google.maps.Size(-140, 0),
zIndex: null,
boxStyle: {
background: "url('http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/examples/tipbox.gif') no-repeat",
opacity: 1,
width: "180px"
},
closeBoxMargin: "12px 4px 2px 2px",
closeBoxURL: "http://www.google.com/intl/en_us/mapfiles/close.gif",
infoBoxClearance: new google.maps.Size(1, 1),
isHidden: false,
pane: "floatPane",
enableEventPropagation: false
};
diyaa jamal
Member
195 Points
140 Posts
Marker for google map control
Dec 31, 2012 06:22 PM|LINK
Hello All,
I'm using google map control, and when I got the location from DB I wanna to add DROP PIN in the location
for ex:
SohailShaikh
Contributor
6119 Points
1167 Posts
Re: Marker for google map control
Jan 01, 2013 04:11 AM|LINK
var marker; marker = new google.maps.Marker({ map: map, icon: icon, position: point,// here you provide longitude and latitude both title: providername, // here you want to show any name visible: true }), boxText = document.createElement("div"), //these are the options for all infoboxes infoboxOptions = { content: boxText, disableAutoPan: false, maxWidth: 0, pixelOffset: new google.maps.Size(-140, 0), zIndex: null, boxStyle: { background: "url('http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobox/examples/tipbox.gif') no-repeat", opacity: 1, width: "180px" }, closeBoxMargin: "12px 4px 2px 2px", closeBoxURL: "http://www.google.com/intl/en_us/mapfiles/close.gif", infoBoxClearance: new google.maps.Size(1, 1), isHidden: false, pane: "floatPane", enableEventPropagation: false };Sohail Shaikh
geniusvishal
Star
14070 Points
2791 Posts
Re: Marker for google map control
Jan 01, 2013 04:45 AM|LINK
Hi,
Refer these links:
http://forums.asp.net/t/1798331.aspx/1
http://deepumi.wordpress.com/2010/03/28/google-map-3-with-multiple-locations-in-asp-net-c/
My Website
www.dotnetvishal.com
diyaa jamal
Member
195 Points
140 Posts
Re: Marker for google map control
Jan 01, 2013 05:31 PM|LINK
javascript?
diyaa jamal
Member
195 Points
140 Posts
Re: Marker for google map control
Jan 01, 2013 05:34 PM|LINK
It's work but when I get my data from textbox (postion) it doesn't work?!!!