# SimpleMakerOverlay issue

**URL:** <https://community.thinkgeo.com/t/simplemakeroverlay-issue/4020>\
**Category:** MVC\
**Created:** [March 23, 2013, 11:38am UTC](https://community.thinkgeo.com/t/simplemakeroverlay-issue/4020 "2013-03-23T11:38:46Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jean-marie](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/a183cd/32.png) [@Jean-marie](https://community.thinkgeo.com/u/Jean-marie)\
**Post date:** [March 23, 2013, 11:38am UTC](https://community.thinkgeo.com/t/simplemakeroverlay-issue/4020/1 "2013-03-23T11:38:46Z")

</div>

&nbsp;Hi,

I&nbsp;think&nbsp;that&nbsp;I&nbsp;found&nbsp;some&nbsp;kind&nbsp;of&nbsp;bug&nbsp;with&nbsp;the&nbsp;SimpleMarkerOverlay....&nbsp;&nbsp;I&nbsp;had&nbsp;issue&nbsp;with&nbsp;markers&nbsp;not&nbsp;showing&nbsp;up&nbsp;on&nbsp;the&nbsp;map&nbsp;when&nbsp;using&nbsp;this&nbsp;SimpleMarkerOverlay&nbsp;and&nbsp;I&nbsp;found&nbsp;that&nbsp;just&nbsp;adding&nbsp;inside&nbsp;the&nbsp;view&nbsp;&nbsp;CustomeOverlays&nbsp;the&nbsp;definition&nbsp;for&nbsp;an&nbsp;InMemoryMarkerOverlay&nbsp;just&nbsp;before&nbsp;my&nbsp;"smo"&nbsp;make&nbsp;my&nbsp;"smo"&nbsp;to&nbsp;work!!!!!

overlay.InMemoryMarkerOverlay("MarkerOverlay");  
&nbsp;  
overlay.SimpleMarkerOverlay("smo").IsVisible(true).Name("smo").IsBaseOverlay(false).DragMode(MarkerDragMode.Drag).OnClientClick("info");  
  
Any&nbsp;idea?  
  
jm.

&nbsp;

&nbsp;

---

<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:** [March 25, 2013, 4:45am UTC](https://community.thinkgeo.com/t/simplemakeroverlay-issue/4020/2 "2013-03-25T04:45:32Z")

</div>

Hi&nbsp;Jean-marie,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;cannot&nbsp;reproduce&nbsp;that.&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;tested&nbsp;it&nbsp;in&nbsp;the&nbsp;UseDraggableMarkers&nbsp;sample&nbsp;of&nbsp;our&nbsp;HowDoISample.&nbsp;(localhost:53072/Miscellaneous/UseDraggableMarkers/1,AllSamples)&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;put&nbsp;this&nbsp;code&nbsp;in&nbsp;UseDraggableMarkers.cshtml:&nbsp;  
&nbsp;`  .CustomOverlays(overlay =>              {                  //overlay.InMemoryMarkerOverlay("MarkerOverlay");                  overlay.SimpleMarkerOverlay("smo").IsVisible(true).Name("smo").IsBaseOverlay(false).DragMode(MarkerDragMode.Drag).OnClientClick("info").Markers(m =>                  {                      m.Marker(-8922952.93266, 2984101.58384, new ThinkGeo.MapSuite.MvcEdition.WebImage(21, 25, -10.5f, -25f));                      m.Marker(-12454955.13517, 4980025.26614, new ThinkGeo.MapSuite.MvcEdition.WebImage(21, 25, -10.5f, -25f));                      m.Marker(-10772117.52067, 3864656.14956, new ThinkGeo.MapSuite.MvcEdition.WebImage(21, 25, -10.5f, -25f));                      m.Marker(-13164290.75755, 4035875.09290, new ThinkGeo.MapSuite.MvcEdition.WebImage(21, 25, -10.5f, -25f));                      m.Marker(-9754587.80028, 5156136.17929, new ThinkGeo.MapSuite.MvcEdition.WebImage(21, 25, -10.5f, -25f));                  });              })`&nbsp;  
&nbsp;&nbsp;  
&nbsp;No&nbsp;matter&nbsp;I&nbsp;comment&nbsp;the&nbsp;"overlay.InMemoryMarkerOverlay("MarkerOverlay");"&nbsp;or&nbsp;not,&nbsp;the&nbsp;markers&nbsp;shows&nbsp;on&nbsp;page.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Please&nbsp;let&nbsp;me&nbsp;know&nbsp;if&nbsp;I&nbsp;missed&nbsp;something&nbsp;important.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;more&nbsp;information&nbsp;or&nbsp;a&nbsp;quickly&nbsp;sample&nbsp;which&nbsp;can&nbsp;reproduce&nbsp;that&nbsp;will&nbsp;be&nbsp;helpful.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don

---

<div class="post-metadata">

**Author:** ![Jean-marie](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/a183cd/32.png) [@Jean-marie](https://community.thinkgeo.com/u/Jean-marie)\
**Post date:** [March 25, 2013, 11:37am UTC](https://community.thinkgeo.com/t/simplemakeroverlay-issue/4020/3 "2013-03-25T11:37:56Z")

</div>

for&nbsp;me&nbsp;it&nbsp;doesn’t&nbsp;work&nbsp;like&nbsp;this&nbsp;I&nbsp;have&nbsp;to&nbsp;have&nbsp;the&nbsp;overlay.InMemoryMarkerOverlay(“MarkerOverlay”)&nbsp;before&nbsp;my&nbsp;SimpleMarkerOverlay.&nbsp;  
&nbsp;&nbsp;  
&nbsp;However,&nbsp;I&nbsp;do&nbsp;not&nbsp;populate&nbsp;the&nbsp;makers&nbsp;within&nbsp;the&nbsp;view&nbsp;but&nbsp;from&nbsp;within&nbsp;the&nbsp;controller&nbsp;when&nbsp;called&nbsp;using&nbsp;the&nbsp;AjaxCall&nbsp;function.&nbsp;  
&nbsp;&nbsp;  
&nbsp;last&nbsp;but&nbsp;not&nbsp;least&nbsp;the&nbsp;issue&nbsp;I&nbsp;had&nbsp;was&nbsp;because&nbsp;I&nbsp;was&nbsp;unable&nbsp;to&nbsp;get&nbsp;the&nbsp;marker&nbsp;on&nbsp;the&nbsp;screen&nbsp;and&nbsp;I&nbsp;try&nbsp;to&nbsp;refresh&nbsp;layers&nbsp;on&nbsp;the&nbsp;client&nbsp;side…&nbsp;  
&nbsp;&nbsp;  
&nbsp;jm

---

<div class="post-metadata">

**Author:** ![Jean-marie](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/a183cd/32.png) [@Jean-marie](https://community.thinkgeo.com/u/Jean-marie)\
**Post date:** [March 25, 2013, 11:40am UTC](https://community.thinkgeo.com/t/simplemakeroverlay-issue/4020/4 "2013-03-25T11:40:46Z")

</div>

for&nbsp;me&nbsp;it&nbsp;doesn’t&nbsp;work&nbsp;like&nbsp;this&nbsp;I&nbsp;have&nbsp;to&nbsp;have&nbsp;the&nbsp;overlay.InMemoryMarkerOverlay(“MarkerOverlay”)&nbsp;before&nbsp;my&nbsp;SimpleMarkerOverlay.&nbsp;  
&nbsp;&nbsp;  
&nbsp;However,&nbsp;I&nbsp;do&nbsp;not&nbsp;populate&nbsp;the&nbsp;makers&nbsp;within&nbsp;the&nbsp;view&nbsp;but&nbsp;from&nbsp;within&nbsp;the&nbsp;controller&nbsp;when&nbsp;called&nbsp;using&nbsp;the&nbsp;AjaxCall&nbsp;function.&nbsp;  
&nbsp;&nbsp;  
&nbsp;last&nbsp;but&nbsp;not&nbsp;least&nbsp;the&nbsp;issue&nbsp;I&nbsp;had&nbsp;was&nbsp;because&nbsp;I&nbsp;was&nbsp;unable&nbsp;to&nbsp;get&nbsp;the&nbsp;marker&nbsp;on&nbsp;the&nbsp;screen&nbsp;and&nbsp;I&nbsp;try&nbsp;to&nbsp;refresh&nbsp;layers&nbsp;on&nbsp;the&nbsp;client&nbsp;side…&nbsp;  
&nbsp;&nbsp;  
&nbsp;jm

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [March 27, 2013, 6:27am UTC](https://community.thinkgeo.com/t/simplemakeroverlay-issue/4020/5 "2013-03-27T06:27:06Z")

</div>

&nbsp;Hi,&nbsp;JM,

&nbsp;The&nbsp;attached&nbsp;demo&nbsp;is&nbsp;created&nbsp;following&nbsp;the&nbsp;requirements&nbsp;you&nbsp;mentioned,&nbsp;but&nbsp;seems&nbsp;lke&nbsp;it&nbsp;also&nbsp;works&nbsp;fine.&nbsp;So,&nbsp;could&nbsp;you&nbsp;have&nbsp;a&nbsp;look&nbsp;or&nbsp;modify&nbsp;some&nbsp;codes&nbsp;based&nbsp;on&nbsp;it?

&nbsp;Thanks,

Johnny

[simple\_marker.zip](https://community.thinkgeo.com/uploads/default/original/2X/f/f213f4db5970291b60b1fd1036999d1261eb5950.zip) (137 KB)

---

<div class="post-metadata">

**Author:** ![Jean-marie](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/a183cd/32.png) [@Jean-marie](https://community.thinkgeo.com/u/Jean-marie)\
**Post date:** [April 1, 2013, 3:03pm UTC](https://community.thinkgeo.com/t/simplemakeroverlay-issue/4020/6 "2013-04-01T15:03:40Z")

</div>

HI,&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;you&nbsp;comment&nbsp;out&nbsp;the&nbsp;overlay.InMemoryMarkerOverlay("MarkerOverlay")&nbsp;and&nbsp;of&nbsp;course&nbsp;the&nbsp;InMemoryMarkerOverlay&nbsp;insidethe&nbsp;AddMarkers&nbsp;  
&nbsp;&nbsp;  
&nbsp;then&nbsp;SimpleMarkerOverlay&nbsp;markerOverlay&nbsp;=&nbsp;map.CustomOverlays["smo"]&nbsp;as&nbsp;SimpleMarkerOverlay&nbsp;add&nbsp;markes&nbsp;does&nbsp;not&nbsp;work&nbsp;at&nbsp;all!!!&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;mean&nbsp;that&nbsp;keeping&nbsp;only&nbsp;what&nbsp;is&nbsp;required&nbsp;in&nbsp;your&nbsp;code&nbsp;for&nbsp;the&nbsp;"smo"&nbsp;layer&nbsp;does&nbsp;not&nbsp;work…&nbsp;&nbsp;no&nbsp;makers&nbsp;added&nbsp;to&nbsp;the&nbsp;smo&nbsp;layer&nbsp;are&nbsp;visible&nbsp;on&nbsp;the&nbsp;map.

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [April 2, 2013, 5:01am UTC](https://community.thinkgeo.com/t/simplemakeroverlay-issue/4020/7 "2013-04-02T05:01:02Z")

</div>

Hi&nbsp;Jean-marie,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;further&nbsp;information,&nbsp;we&nbsp;recreated&nbsp;the&nbsp;problem&nbsp;and&nbsp;fixed&nbsp;this&nbsp;bug,&nbsp;would&nbsp;you&nbsp;please&nbsp;get&nbsp;the&nbsp;latest&nbsp;version&nbsp;6.0.325.0&nbsp;or&nbsp;6.0.0.325&nbsp;and&nbsp;have&nbsp;another&nbsp;try?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary&nbsp;

---

<div class="post-metadata">

**Author:** ![Jean-marie](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/a183cd/32.png) [@Jean-marie](https://community.thinkgeo.com/u/Jean-marie)\
**Post date:** [April 2, 2013, 7:50am UTC](https://community.thinkgeo.com/t/simplemakeroverlay-issue/4020/8 "2013-04-02T07:50:10Z")

</div>

I&nbsp;tried&nbsp;again&nbsp;this&nbsp;morning&nbsp;with&nbsp;the&nbsp;build&nbsp;6.0.324&nbsp;and&nbsp;the&nbsp;issue&nbsp;is&nbsp;still&nbsp;alive.&nbsp;&nbsp;&nbsp;overlays.SimpleMarkerOverlay&nbsp;&nbsp;server&nbsp;to&nbsp;client&nbsp;synchronization&nbsp;does&nbsp;not&nbsp;occur&nbsp;or&nbsp;at&nbsp;least&nbsp;I&nbsp;cannot&nbsp;see&nbsp;it&nbsp;looking&nbsp;at&nbsp;the&nbsp;chrome&nbsp;network&nbsp;javascript&nbsp;debugging&nbsp;console.&nbsp;&nbsp;moreover&nbsp;just&nbsp;to&nbsp;confirm&nbsp;the&nbsp;other&nbsp;post&nbsp;the&nbsp;drag&nbsp;marker&nbsp;feature&nbsp;of&nbsp;the&nbsp;very&nbsp;same&nbsp;&nbsp;overlays.SimpleMarkerOverlay&nbsp;&nbsp;does&nbsp;not&nbsp;work&nbsp;as&nbsp;well&nbsp;even&nbsp;when&nbsp;a&nbsp;overlays.InMemoryMarkerOverlay&nbsp;has&nbsp;been&nbsp;defined&nbsp;insid&nbsp;e&nbsp;the&nbsp;same&nbsp;razor&nbsp;view.&nbsp;  
&nbsp;&nbsp;  
&nbsp;jm.

---

<div class="post-metadata">

**Author:** ![Jean-marie](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/a183cd/32.png) [@Jean-marie](https://community.thinkgeo.com/u/Jean-marie)\
**Post date:** [April 2, 2013, 7:50am UTC](https://community.thinkgeo.com/t/simplemakeroverlay-issue/4020/9 "2013-04-02T07:50:55Z")

</div>

I&nbsp;shall&nbsp;try&nbsp;the&nbsp;6.0.325&nbsp;when&nbsp;available&nbsp;on&nbsp;my&nbsp;customer&nbsp;portal.

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [April 3, 2013, 2:17am UTC](https://community.thinkgeo.com/t/simplemakeroverlay-issue/4020/10 "2013-04-03T02:17:16Z")

</div>

Hello&nbsp;Jean-marie,&nbsp;  
&nbsp;&nbsp;  
&nbsp;This&nbsp;issue&nbsp;is&nbsp;caused&nbsp;by&nbsp;some&nbsp;javascript&nbsp;bug,&nbsp;so&nbsp;we&nbsp;did&nbsp;some&nbsp;changes&nbsp;on&nbsp;within&nbsp;javascript,&nbsp;I&nbsp;think&nbsp;maybe&nbsp;the&nbsp;reason&nbsp;is&nbsp;that&nbsp;js&nbsp;not&nbsp;refresh(update)&nbsp;in&nbsp;your&nbsp;side,&nbsp;could&nbsp;you&nbsp;please&nbsp;try&nbsp;to&nbsp;force&nbsp;refresh&nbsp;the&nbsp;webpage&nbsp;after&nbsp;you&nbsp;replace&nbsp;the&nbsp;newest&nbsp;dll&nbsp;and&nbsp;have&nbsp;another&nbsp;try?&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Gary

---

<div class="post-metadata">

**Author:** ![Jean-marie](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/a183cd/32.png) [@Jean-marie](https://community.thinkgeo.com/u/Jean-marie)\
**Post date:** [April 3, 2013, 9:33am UTC](https://community.thinkgeo.com/t/simplemakeroverlay-issue/4020/11 "2013-04-03T09:33:05Z")

</div>

Hi,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;have&nbsp;downloaded&nbsp;the&nbsp;version&nbsp;6.0.0.325&nbsp;production&nbsp;daily&nbsp;build&nbsp;and&nbsp;the&nbsp;overlays.SimpleMarkerOverlay&nbsp;client&nbsp;to&nbsp;server&nbsp;synchronization&nbsp;seems&nbsp;to&nbsp;be&nbsp;solved&nbsp;but&nbsp;the&nbsp;DRAG&nbsp;MARKER&nbsp;option&nbsp;is&nbsp;still&nbsp;not&nbsp;working!&nbsp;  
&nbsp;&nbsp;  
&nbsp;jm.

---

<div class="post-metadata">

**Author:** ![Gary2](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/49beb7/32.png) [@Gary2](https://community.thinkgeo.com/u/Gary2)\
**Post date:** [April 4, 2013, 4:49am UTC](https://community.thinkgeo.com/t/simplemakeroverlay-issue/4020/12 "2013-04-04T04:49:30Z")

</div>

&nbsp;Hello&nbsp;Jean-marie,

&nbsp;  
After&nbsp;replace&nbsp;the&nbsp;newest&nbsp;dll,&nbsp;we&nbsp;can't&nbsp;recreate&nbsp;that&nbsp;problem&nbsp;any&nbsp;more,&nbsp;could&nbsp;you&nbsp;please&nbsp;check&nbsp;the&nbsp;attachment&nbsp;sample&nbsp;and&nbsp;make&nbsp;a&nbsp;compare?  
&nbsp;  
Regards,  
&nbsp;  
Gary  
  
[001\_simple\_marker.zip](https://community.thinkgeo.com/uploads/default/original/2X/a/a48c94ec5329e14e889c0cf3c818a95d9d10b43f.zip) (135 KB)

---

<div class="post-metadata">

**Author:** ![Jean-marie](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/a183cd/32.png) [@Jean-marie](https://community.thinkgeo.com/u/Jean-marie)\
**Post date:** [April 4, 2013, 8:07am UTC](https://community.thinkgeo.com/t/simplemakeroverlay-issue/4020/13 "2013-04-04T08:07:19Z")

</div>

Hi,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;have&nbsp;found&nbsp;that&nbsp;the&nbsp;simple&nbsp;marker&nbsp;overlay&nbsp;issue&nbsp;is&nbsp;linked&nbsp;with&nbsp;the&nbsp;fact&nbsp;that&nbsp;this&nbsp;overlay&nbsp;must&nbsp;be&nbsp;the&nbsp;last&nbsp;overlay&nbsp;defined&nbsp;inside&nbsp;the&nbsp;razor&nbsp;view.&nbsp;  
&nbsp;&nbsp;  
&nbsp;jm

---

<div class="post-metadata">

**Author:** ![Johnny](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/johnny/32/19044_2.png) [@Johnny](https://community.thinkgeo.com/u/Johnny)\
**Post date:** [April 8, 2013, 1:19am UTC](https://community.thinkgeo.com/t/simplemakeroverlay-issue/4020/14 "2013-04-08T01:19:40Z")

</div>

Hi&nbsp;JM,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Sorry&nbsp;for&nbsp;the&nbsp;inconvenience,&nbsp;we&nbsp;have&nbsp;solved&nbsp;the&nbsp;dragging&nbsp;problem,&nbsp;would&nbsp;you&nbsp;please&nbsp;get&nbsp;the&nbsp;latest&nbsp;version&nbsp;6.0.330.0&nbsp;or&nbsp;6.0.0.330&nbsp;to&nbsp;retest?&nbsp;  
&nbsp;&nbsp;  
&nbsp;And&nbsp;we&nbsp;also&nbsp;changed&nbsp;the&nbsp;SMO&nbsp;to&nbsp;the&nbsp;first&nbsp;defined&nbsp;after&nbsp;fixing&nbsp;the&nbsp;bug,&nbsp;it&nbsp;is&nbsp;also&nbsp;working&nbsp;in&nbsp;our&nbsp;end.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Hope&nbsp;it&nbsp;helps&nbsp;  
&nbsp;&nbsp;  
&nbsp;Johnny&nbsp;
