<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — Markers should have a way to unset Draggable]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1413</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1413&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Markers should have a way to unset Draggable.]]></description>
		<lastBuildDate>Tue, 10 Dec 2019 09:27:38 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Markers should have a way to unset Draggable]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=5831#p5831</link>
			<description><![CDATA[<p>Hello.</p><p>Thank you for the good suggestion.<br />The next version of Online Maps will contain this.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 10 Dec 2019 09:27:38 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=5831#p5831</guid>
		</item>
		<item>
			<title><![CDATA[Markers should have a way to unset Draggable]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=5829#p5829</link>
			<description><![CDATA[<p>Currently you can call SetDraggable from OnlineMapsMarkerBase and that will enable the drag feature; however, there is no way to make a marker not draggable other than to delete it and create a new one in its place.</p><p>I suggest replacing the current SetDraggable method with the following which will maintain compatibility.</p><div class="codebox"><pre><code>    public bool IsDraggable {
        get; private set;
    }

    public void SetDraggable(bool value = true)
    {
        if (IsDraggable == value) {
            return;
        }
        IsDraggable = value;

        if (value) {
            OnPress += OnMarkerPress;
        } else {
            OnPress -= OnMarkerPress;
        }
    }</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Chootin)]]></author>
			<pubDate>Tue, 10 Dec 2019 02:24:36 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=5829#p5829</guid>
		</item>
	</channel>
</rss>
