toodego: don't display tiles for markers, display tooltip (#44697)
This commit is contained in:
parent
20107c358e
commit
f7361e7d6b
|
@ -205,6 +205,9 @@ $(function() {
|
|||
/* map search */
|
||||
$('.search-page div.cell.map').addClass('loading').on('combo:map-markers-ready', function() {
|
||||
$(this).removeClass('loading');
|
||||
$('span.layer-fontaine-eau-potable').attr('title', 'Fontaine d’eau potable');
|
||||
$('span.layer-fontaine-ornementale').attr('title', 'Fontaine ornementale');
|
||||
$('span.layer-borne-fontaine').attr('title', 'Borne fontaine');
|
||||
});
|
||||
if ($('div.combo-cell-map.leaflet-container').length) {
|
||||
$(window).on('resize orientationchange toodego:map-size', function() {
|
||||
|
@ -222,6 +225,12 @@ $(function() {
|
|||
}
|
||||
$('.search-page div.cell.map').on('combo:map-feature-prepare', function(ev, info) {
|
||||
var geojson_layer_slug = info.geojson_layer.slug;
|
||||
if (geojson_layer_slug == 'borne-fontaine' ||
|
||||
geojson_layer_slug == 'fontaine-eau-potable' ||
|
||||
geojson_layer_slug == 'fontaine-ornemntale') {
|
||||
// no tile for those.
|
||||
return;
|
||||
}
|
||||
info.layer.on('click', function(ev) {
|
||||
var marker = info.layer;
|
||||
var marker_tile_identifier = map_marker_identifier(geojson_layer_slug, marker);
|
||||
|
|
Loading…
Reference in New Issue