-
Forum
-
Zh GoogleMap
-
Component
-
Placemark ordering
Placemark ordering
-
asterix9
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 12
-
Thank you received: 0
-
-
Less
More
-
Posts: 4609
-
Thank you received: 460
-
-
-
-
-
9 years 1 month ago - 9 years 1 month ago #6454
by Dima
Hi
Are you kidding me, or what?
Look at
forum.zhuk.cc/index.php/gm-component/372...ng?limitstart=0#6320
I posted you. You defined your placemarks by TEXT ADDRESS.
In this case I use geocoder to get it position in latitude/longitude coordinates. It is asynchronous process, and it's results not returned in order to call.
Ie if I call "get me coordinates for text address" for placemarks 1,2,3,4 there is no guarantee that geocoder return me results in this order (1,2,3,4). It can return in any order.
And I told you (and gave link to my docs) what you have to do.
Last edit: 9 years 1 month ago by Dima.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4609
-
Thank you received: 460
-
-
-
-
-
9 years 1 month ago #6455
by Dima
For example placemark "Zentrale Nordamerika" defined by text address. And "Zentrale Österreich", "Zentrale Schweiz", "Zentrale Frankreich"...
Check your placemarks.
Please Log in or Create an account to join the conversation.
-
asterix9
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 12
-
Thank you received: 0
-
-
9 years 1 month ago - 9 years 1 month ago #6456
by asterix9
Sorry!!!!
In the map ist the config by Custom ordering. and which are placemark sorted correctly.
why change it when reload ?????
asterix9 wrote: This ist my config.
Screen ist an page 2.
Although I have tried other settings but you do not get the results I need.
Last edit: 9 years 1 month ago by asterix9.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 4609
-
Thank you received: 460
-
-
-
-
-
9 years 1 month ago - 9 years 1 month ago #6457
by Dima
In admin panel (in grid) you can see correct order because you just see config of your data, without its displaying.
When you show the map with placemarks, I get it with this order.
After that I need to get it's real position by text address. In this case I need use geocoder.
I pass text address to it. Geocoder do REQUEST to server to get position (latitude, longitude). After it get answer for that, it returns its status and answer data.
This answer will be get by different time - it depends on different cases (network, server busy, cache and so on).
And when you reload your page, the geocoder again requests data for text addresses, and the time of answers can be different, therefore it comes back with different time. Therefore after reload the order in placemark list can be different.
I suggest change your placemarks to have latitude and longitude in its definition.
In this case the geocoder will not use, and placemarks created in order you define it.
Last edit: 9 years 1 month ago by Dima.
Please Log in or Create an account to join the conversation.
-
asterix9
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 12
-
Thank you received: 0
-
-
9 years 1 month ago #6458
by asterix9
Ok. that is logical and you can understand that.
Perhaps it is helpful in the backend to provide information for this geocoder here.
I have this now inserted. and it works. many many thanks.
Please Log in or Create an account to join the conversation.
-
Forum
-
Zh GoogleMap
-
Component
-
Placemark ordering
Time to create page: 0.083 seconds