-
Zh YandexMap
-
Component
-
Пользовательские карты
Пользовательские карты
Less
More
-
Posts: 4606
-
Thank you received: 460
-
-
-
-
-
Less
More
-
Posts: 27
-
Thank you received: 0
-
-
-
-
8 years 2 months ago #8637
by Алексей
Простите за мою непонятливость, но что именно подставить?
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4606
-
Thank you received: 460
-
-
-
-
-
8 years 2 months ago #8638
by Dima
Создаете пользовательский тип карты
Указываете формулу функции по подобию OpenStreetMap.
Ваши тайлы Tiles URL: 91.237.82.95:8082/genshtab2km/z/x/y.jpg
OpenStreetMap тайлы
tile.openstreetmap.org/z/x/y.png
Так что это абсолютно аналогичная функция
Указываете, что проекция Spherical Mercator и получаете.
EPSG:3857 is a Spherical Mercator projection coordinate system popularized by web services such as Google and later OpenStreetMap.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 27
-
Thank you received: 0
-
-
-
-
8 years 2 months ago - 8 years 2 months ago #8639
by Алексей
В пользовательской карте пробовал так:
function (tile, zoom) { return "http://91.237.82.95:8082/genshtab2km/"+zoom+"/tile-"+tile[0]+"-"+tile[1]+".jpg"; }
И так:
function (tile, zoom) { return "http://91.237.82.95:8082/genshtab2km/z/x/y.jpg"; }
И - ничего.
Last edit: 8 years 2 months ago by Алексей.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4606
-
Thank you received: 460
-
-
-
-
-
8 years 2 months ago #8642
by Dima
Дак
/"+zoom+"/tile-"+tile[0]+"-"+tile[1]+".jpg"
Вы будете формировать ссылку типа
/z/tile-x-y.jpg
Вы уж напишите правильно
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 34
-
Thank you received: 0
-
-
-
-
7 years 6 months ago #10690
by 1van
Мешаю свою карту с OSM т.к. там максимальный масштаб 23.
Хотелось бы мешать с Гибридом, но там максимум zoom 20. Можно ли снять ограничение и сделать max zoom 22 (это максимальный zoom в моей нарезке тайлов)?
Please Log in or Create an account to join the conversation.
-
Zh YandexMap
-
Component
-
Пользовательские карты
Time to create page: 0.146 seconds