Group list with 'group' placemarks

  • atrapote
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago #4714 by atrapote
Group list with 'group' placemarks was created by atrapote
Hi all,

first of all, thanks Dmitry for the great component. You rock!

I am trying to find out how I could create a list which displays not only the groups but also the placemarks which are part of each group. For example:

GROUP 1
Placemark-group1-1
Placemark-group1-2
Placemark-group1-3

GROUP 2
Placemark-group2-1
Placemark-group2-2

GROUP 3
Placemark-group3-1
Placemark-group3-2
Placemark-group3-3
Placemark-group3-4

Any ideas?

Thanks in advance.

Please Log in or Create an account to join the conversation.

  • atrapote
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago #4715 by atrapote
Replied by atrapote on topic Group list with 'group' placemarks
BTW my idea is to organise the groups using tabs. If I use the Twitter Bootstrap markup, this would be:
<!-- Nav tabs -->
<ul class="nav nav-tabs">
  <li class="active"><a href="#group1" data-toggle="tab">Group1</a></li>
  <li><a href="#group2" data-toggle="tab">Group2</a></li>
  <li><a href="#group3" data-toggle="tab">Group3</a></li>
  <li><a href="#group4" data-toggle="tab">Group4</a></li>
</ul>

<!-- Tab panes -->
<div class="tab-content">
  <div class="tab-pane active" id="group1">
  <!-- List of placemarks in group1 -->
  </div>
  <div class="tab-pane" id="group2">
  <!-- List of placemarks in group2 -->
  </div>
  <div class="tab-pane" id="group3">
  <!-- List of placemarks in group3 -->
  </div>
  <div class="tab-pane" id="group4">
  <!-- List of placemarks in group4 -->
  </div>
</div>

I think the nav-tabs could be easily got with a list of placemark groups. But what about the tab-content?

Cheers

Please Log in or Create an account to join the conversation.

More
10 years 1 month ago #4719 by Dima
Replied by Dima on topic Group list with 'group' placemarks
Hi.

As I write many times - the placemark group list - it is plane. And, placemark list - the simple plain list, you can't create hierarchy placemarks automatically.

But manual - You can do anything :)
To do:
- it is only component call (menu item with map)
- enable external placemark list in menu item property
- write all list as you want
- for each placemark call special function, which is created on page source

the call is like
<a onclick="PlacemarkByIDShow(81, 'click,center'); return false;" href="#">Show IT!</a>

PlacemarkByIDShow - it is my JavaScript function
81 - placemark ID
'click', 'center', 'click,center' - action to do with this placemark

As for menu items and etc - you can use javascript:PlacemarkByIDShow(81, 'click,center');
call, like the other javascipr function call in line

Don't forget support my developments: post review in JED , donate , help with translation ;)
The following user(s) said Thank You: atrapote

Please Log in or Create an account to join the conversation.

Time to create page: 0.075 seconds

Donate


Go to top