ncnwebdev / storelocator

Automatically exported from code.google.com/p/storelocator
0 stars 0 forks source link

what determines the order of stores in the panel? #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
what determines the order of stores in the panel?
if geolocation is on, does it list them by proximity?

Original issue reported on code.google.com by pauldewo...@gmail.com on 19 Sep 2012 at 9:32

GoogleCodeExporter commented 9 years ago
It's listed by the order returned by the data source.

Original comment by cbro@google.com on 20 Sep 2012 at 5:28

GoogleCodeExporter commented 9 years ago
thanks for the answer.
the stores are ordered in the order set by the datasource up until the new 
storelocator.panel call.
here is the website: http://wpmapmarkers.com
if you view source , you'll see the JSON data that is used to populate the 
stores. For example the first store ID is 52, you can easily compare the order 
in the JSON to the order in the the store-list UL HTML element as they use the 
ID as the ID attribute. 

Original comment by pauldewo...@gmail.com on 20 Sep 2012 at 11:11