Hi everyone,
I’ve seen a lot of posts on the forums recently asking about custom map markers and buttons on the pop up box. Therefore i thought id share this little test project that will allow you to use custom markers, buttons and have it all returned back to Corona. It’s essentially just a HTML page with some javascript thats loaded in a webView or webPopup. Credit goes to jasonschroeder who posted the HTML creation in the code exchange, i simply expanded upon that and made it more customizable and (hopefully) easier to use.
It has its fair share of issues (only on the Android side), but if you guys use it and improve upon it then we should get a pretty decent project in the end!
So far you can:
- Add custom images for markers
- Edit the popup box (Not easy currently, you’ll need to know css etc)
- A popup button that will close the map and return the markers index to corona
- Change the zoom level
- Allow the map to be draggable or not
- Allow zooming or not
- Change the map type (satellite, hybrid etc)
- Allow styling (blue map, red roads etc, advanced)
- Change the maps language (only really has an effect with “ja” for japanese)
- Enable bouncing pins, but its pretty buggy currently!
Heres the project:
And below are a few images to demonstrate the code:
Its not the fatest thing in the world, but its probably the best you can do without going to Enterprise (which is alot better and faster on iOS!).
I hope this helps someone!
Best Regards,
Jamie Trinder