Custom Markers in MapView

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?

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

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.

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

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

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.

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

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 ? :slight_smile:

Tom

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 ? :slight_smile:

Tom

Any hint on how to create custom markers? 

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

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!

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

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.

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

Any hint on how to create custom markers? 

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

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!

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

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.