<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Map marker - Storing additional fields/data]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1934&amp;type=atom" />
	<updated>2022-03-23T18:09:15Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1934</id>
		<entry>
			<title type="html"><![CDATA[Re: Map marker - Storing additional fields/data]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8177#p8177" />
			<content type="html"><![CDATA[<p>Hello.</p><p>You can store any data inside the marker.<br />The easiest way to do this is:<br /></p><div class="codebox"><pre><code>marker[&quot;myKey&quot;] = myValue;
...
ValueType value = marker[&quot;myKey&quot;] as ValueType;</code></pre></div><p>Example:<br /><a href="https://infinity-code.com/atlas/online-maps/pages/MarkerCustomDataExample.html">https://infinity-code.com/atlas/online- … ample.html</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2022-03-23T18:09:15Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8177#p8177</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Map marker - Storing additional fields/data]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8176#p8176" />
			<content type="html"><![CDATA[<p>Hi!</p><p>From what I can see, a marker has two main fields: the location, and the display label.&nbsp; Is there any way to store additional (unseen) data in the marker?</p><p>For example, if I want to create markers from a Google Places search, each Google place has a unique places_id so it&#039;s easier to reference.&nbsp; Is there a way for me to store that in the marker, so I can recall it later during an OnClick (or other) event?</p><p>Thanks in advance for your help!</p>]]></content>
			<author>
				<name><![CDATA[turner]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1939</uri>
			</author>
			<updated>2022-03-23T18:05:31Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8176#p8176</id>
		</entry>
</feed>
