1

I searched a lot over internet but did not find correct solution for the problem. i have to display marker on google map using lat long . I have two images to display as marker one image will work as background and another small image will display over it how can i do this.I am using javascript map api for this.

Note: i can't use photoshop to make these two image as one

Add Makes
  • 65
  • 1
  • 10
  • 1
    What image are you trying to produce. Are you putting a label? Why not create multiple images with possible combinations. Google Maps only allow you to use one image. – Jereme Nov 16 '16 at 14:14
  • 1
    related question: [Marker shadows in Google Maps v3](http://stackoverflow.com/questions/18902361/marker-shadows-in-google-maps-v3) (the marker shadow is just a second image) – geocodezip Nov 16 '16 at 14:23
  • Note: Marker shadows were removed in version 3.14 of the Google Maps JavaScript API. Any shadows specified programmatically will be ignored. Url: https://developers.google.com/maps/documentation/javascript/markers#icons – Add Makes Nov 17 '16 at 07:22

1 Answers1

1

There is a Google maps utility library called RichMarker that allows you to use HTML DOM as markers. Using HTML and CSS you can embed your images.

Here is demo of the utility.

enter image description here

You might be able to implement the solution provided here

https://stackoverflow.com/a/1782662/1109352

You will be using imbedded CSS instead

Community
  • 1
  • 1
Jereme
  • 621
  • 6
  • 14