Guest User

google mapin c# development

a guest
May 24th, 2013
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. var myLatLng = new google.maps.LatLng(this.Latitude, this.Longtitude);
  2.  
  3. var contentString = '<span style="color:green;font-size:10pt;">Hospital Name:' + this.hospitalName + '</span><br />Address:<br />' + this.cityName + this.stateName + '<br/><br/>';
  4.  
  5. var infowindow = new google.maps.InfoWindow();
  6. var marker = new google.maps.Marker({
  7. position: myLatLng,
  8. map: map,
  9. icon: image,
  10. shape: shape
  11. });
  12. google.maps.event.addListener(map, 'click', function() {
  13. infowindow.setContent(contentString);
  14. infowindow.open(map, this);
  15. });
Add Comment
Please, Sign In to add comment