Map API library?

Is there are newer map api library available? Looking to create an application that can leverage either google maps or any map API really. The one I found is almost 8 years old and is not working for me.

If you’re targeting the web, you can use dts2hx to get types for Google Maps and others. For example

npm i -D @types/google.maps
npm i dts2hx
npx dts2hx --all

This will generate .haxelib/google-maps, which looks good to me when I tested it.

You use the map library like you’d use any js/ts library. In this case, you need to add the js script to your page

<script async
    src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap">
</script>
4 Likes