<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Markers should have a way to unset Draggable]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1413&amp;type=atom" />
	<updated>2019-12-10T09:27:38Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1413</id>
		<entry>
			<title type="html"><![CDATA[Re: Markers should have a way to unset Draggable]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5831#p5831" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Thank you for the good suggestion.<br />The next version of Online Maps will contain this.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-12-10T09:27:38Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5831#p5831</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Markers should have a way to unset Draggable]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5829#p5829" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Chootin]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1175</uri>
			</author>
			<updated>2019-12-10T02:24:36Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5829#p5829</id>
		</entry>
</feed>
