' }); markers.push(marker1); var address = `Ukraine, Chernigiv city, 1 Travnia 170a st.`; var city = `14000 Chernigiv`; var phone = `+38 (0462) 602857`; var fax = `+38 (0462) 602860`; var marker2 = new ol.Feature({ geometry: new ol.geom.Point(ol.proj.transform([31.305593, 51.519889], 'EPSG:4326', 'EPSG:3857')), name: 'Dialysis Centre Fresenius Chernigiv', bubble_text: '
' + 'Dialysis Centre Fresenius Chernigiv' + 'Ukraine, Chernigiv city, 1 Travnia 170a st.' + '14000 Chernigiv' + '+38 (0462) 602857' + '+38 (0462) 602860' + 'Map & Details' + 'Direções
' }); markers.push(marker2);
POPUPCONTENT
'); jQuery('#popup').hide(); // display popup on click map.on('click', function(evt) { var feature = map.forEachFeatureAtPixel(evt.pixel, function(feature) { return feature; }); if(feature) { var coordinates = feature.getGeometry().getCoordinates(); popup.setPosition(coordinates); jQuery('#popup .popover-content').html(feature.get('bubble_text')); jQuery('#popup').fadeIn(); } else { jQuery('#popup').fadeOut(); } }); // change mouse cursor when over marker map.on('pointermove', function(e) { if (e.dragging) { //jQuery('#popup').fadeOut(); return; } var pixel = map.getEventPixel(e.originalEvent); var hit = map.hasFeatureAtPixel(pixel); map.getTarget().style.cursor = hit ? 'pointer' : ''; //map.getTarget().attr.title = hit ? 'pointer' : ''; });
2 Resultados Em "todas as clínicas"
2
Clínicas de diálise
os
Modalidades oferecidas
os Telefone+38(0472)565509
Modalidades oferecidas
os Telefone+38 (0462) 602857
Modalidades oferecidas