YnJin1010 / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

Patch for /trunk/richmarker/src/richmarker.js #209

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Fixed default z-index, so that it will be like the standard Marker: 

"By default, markers are displayed according to their vertical position on 
screen, with lower markers appearing in front of markers further up the screen."

Original issue reported on code.google.com by madarco on 8 Nov 2012 at 4:05

Attachments:

GoogleCodeExporter commented 8 years ago
//Adding a Richmarker:
opt.position = new google.maps.LatLng(lat, lon);
opt.map = this.map;
opt.content = content;
var myMarker = new RichMarker(opt);

//With another near:
opt.position = new google.maps.LatLng(lat +0.1, lon +0.1);
opt.map = this.map;
opt.content = content;
var myMarker = new RichMarker(opt);

Expected result:
Like for the standard Marker: "By default, markers are displayed according to 
their vertical position on screen, with lower markers appearing in front of 
markers further up the screen."

Actual result:
However, no z-index is set on the div that contains the RichMarker.content 
html, so the z-index is the insertion order.

Version: trunk

Browser / Operating System:
All

Original comment by madarco on 8 Nov 2012 at 4:06