Обновил иконку для квестов; платные точки теперь уходят в общий слой.
This commit is contained in:
parent
5652665eab
commit
9df330e34c
|
|
@ -3,7 +3,7 @@
|
|||
class Category extends Model
|
||||
{
|
||||
private static $categories = NULL;
|
||||
public static $paidIds = array(24,25,26);
|
||||
public static $paidIds = array(24,25,26,27);
|
||||
|
||||
function __construct($fromArray = array())
|
||||
{
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 1007 B After Width: | Height: | Size: 1009 B |
|
|
@ -56,7 +56,7 @@ suggestInit('#addressField');
|
|||
function init(lat, lng) {
|
||||
myMap = L.map('map', {zoomControl: false}).setView([lat, lng], defaultZoom);
|
||||
markers = new L.MarkerClusterGroup({showCoverageOnHover: false, maxClusterRadius: 30});
|
||||
markersPlus = new L.MarkerClusterGroup({showCoverageOnHover: false, maxClusterRadius: 25});
|
||||
// markersPlus = new L.MarkerClusterGroup({showCoverageOnHover: false, maxClusterRadius: 25});
|
||||
|
||||
layers['quest'] = L.tileLayer('https://otile1-s.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png', {attribution: 'Map data © <a href="http://openstreetmap.org" target="_blank">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/" target="_blank">CC-BY-SA</a>, Imagery © <a href="http://mapbox.com" target="_blank">Mapbox</a> | Points data © <a href="http://wikipoints.ru" target="_blank">WIKIPOINTS.RU</a>', maxZoom: 18});
|
||||
layers['osm'] = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: 'Map data © <a href="http://openstreetmap.org" target="_blank">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/" target="_blank">CC-BY-SA</a> | Points data © <a href="http://wikipoints.ru" target="_blank">WIKIPOINTS.RU</a>', maxZoom: 18});
|
||||
|
|
@ -198,15 +198,16 @@ function initPoints(useBounds)
|
|||
success: function (data) {
|
||||
for(var i=0; i<data.length; i++) {
|
||||
if (typeof points[data[i].id] == 'undefined') {
|
||||
if (data[i]['categoryId'] == 24 || data[i]['categoryId'] == 25) {
|
||||
markersPlus.addLayer(constructPoint(data[i]));
|
||||
} else {
|
||||
// if (data[i]['categoryId'] == 24 || data[i]['categoryId'] == 25 || data[i]['categoryId'] == 26 || data[i]['categoryId'] == 27) {
|
||||
// console.log(data[i]);
|
||||
// markersPlus.addLayer(constructPoint(data[i]));
|
||||
// } else {
|
||||
markers.addLayer(constructPoint(data[i]));
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
myMap.addLayer(markers);
|
||||
myMap.addLayer(markersPlus);
|
||||
// myMap.addLayer(markersPlus);
|
||||
|
||||
if (getURLParameter('point') != 'null')
|
||||
{
|
||||
|
|
@ -252,15 +253,15 @@ function loadPointsInBounds()
|
|||
success: function (data) {
|
||||
for(var i=0; i < data.length; i++) {
|
||||
if (typeof points[data[i].id] == 'undefined') {
|
||||
if (data[i]['categoryId'] == 24 || data[i]['categoryId'] == 25) {
|
||||
markersPlus.addLayer(constructPoint(data[i]));
|
||||
} else {
|
||||
// if (data[i]['categoryId'] == 24 || data[i]['categoryId'] == 25) {
|
||||
// markersPlus.addLayer(constructPoint(data[i]));
|
||||
// } else {
|
||||
markers.addLayer(constructPoint(data[i]));
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
myMap.addLayer(markers);
|
||||
myMap.addLayer(markersPlus);
|
||||
// myMap.addLayer(markersPlus);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue