contentLabel display issue in Google maps marker
Hi Yurii,
Yes, I realize that but had missed where to include the style sheet. Having created a new CSS file in Appery has solved my problem.
Thanks for your feedback on it.
Regards.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hi Yurii,
Yes, I realize that but had missed where to include the style sheet. Having created a new CSS file in Appery has solved my problem.
Thanks for your feedback on it.
Regards.
Here is my code
var list_location = localStorage.getItem('mysqlFireCompaniesArray');
var obj = JSON.parse(list_location);
var coordsArray = obj;
var marker;
var map = Appery("googlemap_6").options.mapElement.gmap('get', 'map');
for (var i = 0, j = coordsArray.length; i < j; i++) {
var marker = new MarkerWithLabel({
position: new google.maps.LatLng( coordsArray.Lat, coordsArray.Lon ), icon:'',
labelContent: coordsArray.Engine,
map: map,
labelAnchor: new google.maps.Point(22, 0),
labelClass: "labels", // the CSS class for the label
labelStyle: {opacity: 0.75},
//map: Appery("googlemap_6").gmap
});
}
HI Vinny,
To remove marker you need to handle it's object in some variable/array.
For this goal you need to add any new marker in array. Then you can clear this array with code:
pre
marker.setMap(null);
/pre
Please read more about solution here: https://developers.google.com/maps/do...
Regards.