Maps API

90 views
Skip to first unread message

flashyourface

unread,
Jun 9, 2015, 6:57:39 PM6/9/15
to haxe...@googlegroups.com
Hey All,

I was wondering if there was a solution for a maps api. Something like google maps though was hoping for it to work with android/flash/js.

Thanks!

Tom

unread,
Jun 10, 2015, 3:43:54 AM6/10/15
to haxe...@googlegroups.com

flashyourface

unread,
Jun 10, 2015, 3:28:53 PM6/10/15
to haxe...@googlegroups.com
Checking it out now, appreciate the info! 

michael solomon

unread,
Jun 10, 2015, 4:25:40 PM6/10/15
to haxe...@googlegroups.com
It's working for u?

flashyourface

unread,
Jun 10, 2015, 4:33:13 PM6/10/15
to haxe...@googlegroups.com
Nope, get the following errors when compiling in flash develop and cmd:

src/Main.hx:18: characters 48-53 : Unknown identifier : Event
src/map/Canvas.hx:485: lines 485-499 : Please use set_transparent to name your property access method
src/map/Tile.hx:162: lines 162-171 : Please use set_ty to name your property access method
src/map/Tile.hx:151: lines 151-160 : Please use set_tx to name your property access method
Build halted with errors.

On Wednesday, June 10, 2015 at 1:25:40 PM UTC-7, michael solomon wrote:
It's working for u?

flashyourface

unread,
Jun 10, 2015, 4:42:06 PM6/10/15
to haxe...@googlegroups.com
AH!!!! I fixed those errors. Just changed method names to suggested ones.

For the event error, I just wrapped it in a string. Now it compiles and works.

Now my issue is that its only for FLASH. Its targeting flash libs so it will never work anywhere else. 

Also all documentation is in Czech.


Anyone know of a more universal map api? I would like to target android / ios without doing air for android/ios. 

Marcelo de Moraes Serpa

unread,
Jun 10, 2015, 4:55:55 PM6/10/15
to haxe...@googlegroups.com
This project looks interesting. Even if it’s Flash. Maybe it could be ported to HTML5 using OpenFL? 

I exported the project here: https://github.com/fullofcaffeine/haxemaps/, could you create PR (or I can add you to the repo) and push up the fixes when you have some time? :)

I’ve been playing a lot with web mapping lately - you might be interested into leaflet.js. Wouldn’t be hard to put up some Haxe externs for it. It’s pretty good, responsive and is plain HTML5 and js.

Cheers

— Marcelo


--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.

flashyourface

unread,
Jun 10, 2015, 5:18:44 PM6/10/15
to haxe...@googlegroups.com
That would be very cool to make it work with openfl. 

I dont have time to update git however I attached the updated code. Checking leaflet now.
haxemap.zip

flashyourface

unread,
Jun 10, 2015, 5:31:26 PM6/10/15
to haxe...@googlegroups.com
Now I am considering using pure as3/air. Use StageWebView and load leaflets map. Im thinking/hoping performance will be better than packing with phonegap, what do you think?
Reply all
Reply to author
Forward
0 new messages