# Loading Markers without loop

**URL:** <https://community.thinkgeo.com/t/loading-markers-without-loop/5950>\
**Category:** WebForms\
**Created:** [September 24, 2011, 2:42am UTC](https://community.thinkgeo.com/t/loading-markers-without-loop/5950 "2011-09-24T02:42:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KarunaKaran](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/k/977dab/32.png) [@KarunaKaran](https://community.thinkgeo.com/u/KarunaKaran)\
**Post date:** [September 24, 2011, 2:42am UTC](https://community.thinkgeo.com/t/loading-markers-without-loop/5950/1 "2011-09-24T02:42:08Z")

</div>

Hi

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I&nbsp;want&nbsp;to&nbsp;know&nbsp;that&nbsp;is&nbsp;it&nbsp;possible&nbsp;to&nbsp;load&nbsp;markers&nbsp;(more&nbsp;than&nbsp;20000)&nbsp;&nbsp;to&nbsp;a&nbsp;layer&nbsp;without&nbsp;using&nbsp;loop(for,foreach).&nbsp;&nbsp;The&nbsp;looping&nbsp;consumes&nbsp;more&nbsp;time&nbsp;to&nbsp;load,&nbsp;so&nbsp;can&nbsp;you&nbsp;please&nbsp;provide&nbsp;any&nbsp;work&nbsp;around&nbsp;to&nbsp;load&nbsp;markers&nbsp;without&nbsp;using&nbsp;looping&nbsp;statement&nbsp;.

&nbsp;

Thanks&nbsp;in&nbsp;Advance

Regards

Karunakaran&nbsp;M

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [September 26, 2011, 10:35am UTC](https://community.thinkgeo.com/t/loading-markers-without-loop/5950/2 "2011-09-26T10:35:51Z")

</div>

Hi&nbsp;Karunakaran,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Your&nbsp;question&nbsp;is&nbsp;the&nbsp;same&nbsp;one&nbsp;with&nbsp;this&nbsp;topic:&nbsp;[gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/12/aft/9592/afv/topic/Default.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/12/aft/9592/afv/topic/Default.aspx)&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;will&nbsp;reply&nbsp;you&nbsp;there.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don

---

<div class="post-metadata">

**Author:** ![Mark\_Lee](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/m/c5a1d2/32.png) [@Mark\_Lee](https://community.thinkgeo.com/u/Mark_Lee)\
**Post date:** [February 19, 2018, 6:35am UTC](https://community.thinkgeo.com/t/loading-markers-without-loop/5950/3 "2018-02-19T06:35:01Z")

</div>

Hi Karunakaran,

You can use FeatureSourceMarkerOverlay to display many markers. There’s a data source behind the scenes to provide the data, and you don’t have to loop through each feature to make it show.

Here is the detail about this class.

> **[ThinkGeo Docs](https://docs.thinkgeo.com)**
>
> Documentation for ThinkGeo

Here is the WPF HowDoI sample where you can find this function:  
[https://github.com/ThinkGeo/HowDoISample-ForWpf](https://github.com/ThinkGeo/HowDoISample-ForWpf)

Here you can find the sample code of this particular feature (FeatureSourceMarkerOverlay):  
[https://github.com/ThinkGeo/HowDoISample-ForWpf/tree/master/HowDoI/Markers](https://github.com/ThinkGeo/HowDoISample-ForWpf/tree/master/HowDoI/Markers)

But display too many markers (like 20,000 mentioned in the thread) on the map will slow things done a bit anyway. You can have a try and find the balance between the count of the features you want to show and its performance.

Thanks,  
Mark
