-1

I'm new to this Google map integration.

I have the following code to add marker in Google map.

this.map.addMarker(this.createMarker(infoName, new window.google.maps.LatLng(data.MapdataRecord[i].Latitude, data.MapdataRecord[i].Longitude), 'icon_hosp.png'));

In above code we are showing hospital icon as a marker image, but now the requirement has changed and we need to show the dynamic content there.

Something like image/icon with Numbers. These numbers are dynamic. Reuirement is as below

enter image description here

How to add these markers in maps.

Thanks for your help :)

PaRsH
  • 1,320
  • 4
  • 28
  • 56

1 Answers1

0
onload google map make an array for your dyanamic icon.
while adding these marker on gmap.Add them
$.each(data.MapdataRecord,function(i,k){  
 this.map.addMarker(this.createMarker(infoName, new window.google.maps.LatLng(k.Latitude,     k.Longitude), Use Array of ICon));
});
AAA
  • 142
  • 7