0

I use google map api and add text with MapLabel, how to add text above maps. Now me text under maps.

MapLabel function:

    var mapLabel = new MapLabel({
      text: 'Test0000001',
      position: new google.maps.LatLng(61.52401, 105.31875600000001),
      map: map,
      fontSize: 100,
      align: 'center'
    });

full code jsfiddle: http://jsfiddle.net/16khyyj0/

jsphp
  • 17
  • 1
  • 6

1 Answers1

2

You will need to replace a line in maplabel.js file:

From

mapPane.appendChild(canvas);

to:

floatPane.appendChild(canvas);

Source

Community
  • 1
  • 1
Simas
  • 43,548
  • 10
  • 88
  • 116