Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Programmatically open/close a specific map markers popup
Started by tom04 Jun 01 2018 05:24 AM

3 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

tom04

[GLOBAL: userInfoPane.html]
tom04
  • Observer

  • 2 posts
  • Corona SDK

I was wondering if it would be possible to programmatically trigger the popup for a specific marker, and then after a timer has expired, close that marker.

 

 



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 23,955 posts
  • Corona Staff

Sure you can just keep track of a marker's ID and remove it:  See:  https://docs.coronalabs.com/api/type/Map/removeMarker.html

 

You can always add markers as you need them using :addMarker(): https://docs.coronalabs.com/api/type/Map/addMarker.html

 

Rob



[TOPIC: post.html]
#3

tom04

[GLOBAL: userInfoPane.html]
tom04
  • Observer

  • 2 posts
  • Corona SDK

That's all well and good, but doesn't answer the question. I'm talking about programmatically triggering the little white box popup when you click a marker!



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 23,955 posts
  • Corona Staff

Not that I'm aware of.

 

Rob




[topic_controls]
[/topic_controls]