Компонент Zh GoogleMap

Всем привет.

Начал вносить изменения в компонент, аналогичные как для Яндекс.Карты, т.е. группировка маркеров и управление сразу группой, в Google Maps API это называется MarkerManager. Нет, я ошибся, но буду использовать свой механизм для реализации MarkerManager, а потом разберусь с группами 🙂

Весь backend-интерфейс уже клонирован и интегрирован, уже работает, осталось дело за отображением.

Если будут перебои в работе демостраницы – приношу свои извинения, это значит я его правлю и тестирую 🙂

9 thoughts on “Компонент Zh GoogleMap

    • Dima

      I have 2 independent ideas 🙂
      First – implement markermanager, it’s not difficult. But when I’ve finished development for Zh YandexMap, I think, that this functionality in Google is done, but….
      You can see demo from my demo site for Yandex component (first menu item = ”How to find”)
      You can click left items, and enable|disable group of markers.

      I’ve an idea how I can do this, but first – pure marker manager 🙂

  • How is the marker manager’s markers populated?? Does it check to see what markers are currently displayed on map OR displays all markers irrespective of them appearing on map?
    ———————-
    I have got over three hundred markers deployed over 9 maps. When using the Cluster functionality often no markers are displayed. Generally a REFRESH fixes the problem. So I have disabled until a more consistent outcome can be delivered. You can test this using http://www.sirowaw.net.nz/index.php/tramping-in-nz/maps/1122-hawkes-bay-regional-map where I have clustering enabled.
    Thanks for the effort you are putting into this, its much appreciated:-)

    • Dima

      Hi. I know about page refreshing, I wrote about that. I haven’t found out, what cause this effect. I added code to create cluster in last line of code (like in google examples), refresh cluster in last line but it still sometimes appear 🙂 Now I’ve changed src script from developing folder to release, but…
      I have an idea that I’ll try to check.

      In MarkerManager you add marker and “say”, in what zoom (or between what zooms) it can displayed. If I right understand 🙂

      updated
      I think I’ve found and fixed problem with refresh 😛

  • Hi Dima
    Upgraded to 1.1.12 – Still not displaying.
    Map zoom=9, cluster zoom=10 works 50% of the time, changing to 8/9 is less consistent while 8/8 works 50%.
    ——————————————
    On another note I have an idea on Marker/Categories. Having the ability to display a marker on multiple maps would be a major advantage. Is it possible from the Backend Map Manager to select/multi-select marker categories to be displayed on a map. Relationships would change to the marker being a child of the Category and Category a child of the map.

    • Dima

      You are using plugin, and you have to upgrade plugin too, because it is independent work!
      You configure map and show (as component from menu) in component, but if you call plugin from article, it is call another code, that is in plugin, not in component, but tables (which contain information) using from component.
      Now I haven’t got map without markers 🙂

  • Dima

    About multiply using markers – I have an idea too 😛

    I’m two days trying to call markermanager, but can’t show any marker with it :((
    I thiks I must take a pause for a while.
    And I’ll try to do group working with markers (like in YandexMaps that calls GeoObjectCollection) or something else, because I need to change thinking of it 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *