Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Custom Markers in MapView
Started by zekedean Apr 29 2013 01:10 PM

11 replies to this topic
map gps mapview marker navigation
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

zekedean

[GLOBAL: userInfoPane.html]
zekedean
  • Enthusiast

  • 32 posts
  • Corona SDK

Hello Fellow Corona Developers,

 

I am looking to add the following functionality to map view. Basically, all markers on the map by default are red, when a user is on gps coordinates of the marker , the marker changes to green colored. Is there a way to do this? Can I simply place a green marker over the red marker's location? How would i get the red markers x position?

 

 



[TOPIC: post.html]
#2

bjsorrentino

[GLOBAL: userInfoPane.html]
bjsorrentino
  • Veteran

  • 8,506 posts
  • Corona SDK

Hi @zekedean,

Currently this isn't supported, but if you add this to the Feedback system, we can determine the overall priority among developers and hopefully make it happen sooner than later.

 

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/3559760-ability-to-add-markers-pins-and-touch-events-to-ma

 

Best regards,

Brent



[TOPIC: post.html]
#3

zekedean

[GLOBAL: userInfoPane.html]
zekedean
  • Enthusiast

  • 32 posts
  • Corona SDK

Hi Brent,

Is it possible to get the x, y position of the markers on the screen? Can I place visual images, text, boxes, pop ups, etc on top of map view? If I had an enterprise corona edition, could I change the marker color properties? I appreciate all input on this.

[TOPIC: post.html]
#4

bjsorrentino

[GLOBAL: userInfoPane.html]
bjsorrentino
  • Veteran

  • 8,506 posts
  • Corona SDK

Hi @zekedean,

Since the map (and other "native" display objects like text input boxes, native videos, alerts, etc.) reside "above" Corona's OpenGL rendering layer, you can't place Corona display objects over the map. However, you could certainly do this with Enterprise right now.

 

And, if you don't need this kind of functionality "immediately", there will be some form of augmented reality in the upcoming graphics 2.0 engine for Pro users. You can read about that here:

http://www.coronalabs.com/blog/2013/04/29/corona-weekly-update-starter-vs-pro-plugins-and-graphics/

 

Hope this helps somewhat,

Brent



[TOPIC: post.html]
#5

Bladko

[GLOBAL: userInfoPane.html]
Bladko
  • Contributor

  • 342 posts
  • Enterprise

Brent

 

So no way Pro users will get custom marker with

 

1) custom image assigned to marker

2) custom touch event assign to marker ?

 

No chance to have it Pro ? Anyone from Enterprise could do such plugin ? :)

 

Tom



[TOPIC: post.html]
#6

Lourenco

[GLOBAL: userInfoPane.html]
Lourenco
  • Contributor

  • 174 posts
  • Corona SDK

Any hint on how to create custom markers? 



[TOPIC: post.html]
#7

ka.narola

[GLOBAL: userInfoPane.html]
ka.narola
  • Observer

  • 17 posts
  • Corona SDK

I am facing same issue. please guide us how to give images to marker in mapview?



[TOPIC: post.html]
#8

TandG

[GLOBAL: userInfoPane.html]
TandG
  • Contributor

  • 422 posts
  • Corona SDK

You can make your own HTML/javascript file that uses Google API's to create a more customisable map. Its a little tricky to get right but at least you can get custom markers.

 

Theres a post in the code exchange detailing how to go about it, (excluding custom markers and buttons) and in a few hours of experimenting with other API calls you can get a pretty decent map!



[TOPIC: post.html]
#9

ka.narola

[GLOBAL: userInfoPane.html]
ka.narola
  • Observer

  • 17 posts
  • Corona SDK

How can I use Javascript to get Pin or markerImage in Mapview from google Map?



[TOPIC: post.html]
#10

TandG

[GLOBAL: userInfoPane.html]
TandG
  • Contributor

  • 422 posts
  • Corona SDK

Take a look here: http://developer.coronalabs.com/code/mapviews-android-using-google-maps-api-javascript

 

I'm working on my own custom version of that for an app i'm making, so once its at a better stage i can post it here.



[TOPIC: post.html]
#11

ka.narola

[GLOBAL: userInfoPane.html]
ka.narola
  • Observer

  • 17 posts
  • Corona SDK

I want an marker with image of my own in iphone application, so How can I add image in Mapview, I have already tried with myMap.addMarker(), but its not working at all with image, so please guide me, I also tried with Java script but also its not helpful for me, so please guide me



[TOPIC: post.html]
#12

ka.narola

[GLOBAL: userInfoPane.html]
ka.narola
  • Observer

  • 17 posts
  • Corona SDK

I want an click event navigation on marker, If user click on any marker from google map , then I want to open new lua storyboard view, but I am having problem in navigating in jS to corona lua code

I already tried with lua.vm.js and lua.js

here is my code block for the same\

 

var infowindow]]..i..[[= ]]..storyboard.gotoScene( "mod_menu", "fromBottom", 500 )..[[ 

 

i am just trying to open view above code in java script but its not working and throwing error

 

Thanks,

Kirti




[topic_controls]
[/topic_controls]