Merged in feature/MAPG-55-mark-places-with-labels-on-summa (pull request #32)

Feature/MAPG-55 mark places with labels on summa
This commit is contained in:
Bence Pőcze 2020-05-22 21:57:41 +00:00
commit 4c850b30a4

View File

@ -183,6 +183,8 @@
map: Core.map, map: Core.map,
visible: !hidden, visible: !hidden,
position: realPosition, position: realPosition,
title: 'Open in Google Maps',
zIndex: 2,
clickable: true, clickable: true,
draggable: false draggable: false
}); });
@ -195,6 +197,7 @@
map: Core.map, map: Core.map,
visible: !hidden, visible: !hidden,
position: guessPosition, position: guessPosition,
zIndex: 1,
clickable: false, clickable: false,
draggable: false, draggable: false,
label: { label: {
@ -267,6 +270,13 @@
for (var i = 0; i < Core.rounds.length; ++i) { for (var i = 0; i < Core.rounds.length; ++i) {
var round = Core.rounds[i]; var round = Core.rounds[i];
round.realMarker.setLabel({
color: '#812519',
fontFamily: 'Roboto',
fontSize: '16px',
fontWeight: '500',
text: String(i+1)
});
round.realMarker.setVisible(true); round.realMarker.setVisible(true);
round.guessMarker.setVisible(true); round.guessMarker.setVisible(true);
round.line.setVisible(true); round.line.setVisible(true);