+1
Using regionenter and regionexit on actions and datasources
Are these datasourceevents out of beta? If so, how do you use them? I am tinkering around with the map stuff and I can't seem to get it to work. I have tried:
And:
I can't seem to get either to work. Am I way off?
<wire>
<datasources>
<datasource name="geo" source="significant-change" query="something" providertype="location"/>
<datasource name="range" source="significant-change" query="something" providertype="location"/>
</datasources>
<main>
<map name="map" alias="MAP" width="100%" height="100%" datasource="geo" currentlocation="yes" showuser="yes"></map>
</main>
<actions>
<action name="setmaplocation" oninit="yes">
<sync>
<assign property="datasource:range.eventDuration" value="5"/>
<assign property="datasource:range.distanceFilter" value="5"/>
<assign property="datasource:range.location" value="on"/>
<assign property="datasource:range.regionenter" value="39.014426 -94.43163"/>
</sync>
</action>
<action name="enterregion" datasource="range" datasourceevent="regionenter">
<alert message="Entered Region" />
</action>
</actions>
</wire>
And:
<wire>
<datasources>
<datasource name="geo" source="significant-change" query="something" providertype="location"/>
<datasource name="range" source="significant-change" query="something" providertype="location"/>
</datasources>
<main>
<map name="map" alias="MAP" width="100%" height="100%" datasource="geo" currentlocation="yes" showuser="yes"></map>
</main>
<actions>
<action name="setmaplocation" oninit="yes">
<sync>
<assign property="datasource:range.region" value="39.014393 -94.431786 39.01427 -94.431454"/>
<assign property="datasource:range.eventDuration" value="5"/>
<assign property="datasource:range.distanceFilter" value="5"/>
<assign property="datasource:range.location" value="on"/>
</sync>
</action>
<action name="enterregion" datasource="range" datasourceevent="regionenter">
<alert message="Entered Region" />
</action>
</actions>
</wire>
I can't seem to get either to work. Am I way off?
Customer support service by UserEcho
It would be immensely helpful if there was a way to define multiple regions within a map, almost like hotspots that would trigger something to happen. I have tried everything I can think of (which admittedly is probably limited given my experience with maps).
http://content.rarewire.com/wordpress...
http://earthquake.usgs.gov/earthquake...