1 (edited by accounts 2020-05-24 18:39:07)

Topic: Can this map work with Uber H3. And other questions?

Same guy from here: https://forum.infinity-code.com/viewtopic.php?id=1429

I've been pondering my map problem while doing other work, and came across: [01 & 02Can't add links because of forum rules]

This is a library that provides an API for a geodesic discrete global grid system.

The questions I have for you are:

-- Can this type of map projection work with this asset? The linked library is only for getting the coordinates of hexagons, and doing related calculations.
    -- I think it needs a different type of map projection. This seems to indicate that it distorts the hexagon size if on a Mercator projection: [03. Cant add links because of forum rules] Ideally I would do without the distortion with the projection type this map expects. However the size distortion only seems to get really extreme near the poles.
-- It seems like this lib would provide hexagon points as lat/long coords for the points of the hexagon or polygon it's representing. Can I easily convert from lat/long to world space to render the polygon as mesh over the map?
-- Can a mesh or other object be moved with the map as the player moves and rotates? Or would there be a more elegant way to use this sort of grid with this asset?
    -- Or can this asset accept/use GeoJSON (Like Leaflet, and other other maps) to natively render shapes on the map?
    -- Can this asset use Vector tiles? I couldn't find info on this. As I can just provide my own tiles that have this data encoded in them to begin with.

The jist is that I want to integrate/overlay a grid, and other objects onto a map, and want to know if I can easily do that with this asset without having to manually manage the overlay outside of the map.

Thanks!

Re: Can this map work with Uber H3. And other questions?

Since I can't add more than 1 link to my to my post...:

-- 01: https://github.com/uber/h3

Re: Can this map work with Uber H3. And other questions?

And again.... -- 02: https://eng.uber.com/h3/

4 (edited by accounts 2020-05-24 18:36:34)

Re: Can this map work with Uber H3. And other questions?

Last one: -- 03: https://observablehq.com/@nrabinowitz/h … variation.

Re: Can this map work with Uber H3. And other questions?

Hello.

1. Theoretically, you can write and use your own projection.
But this requires some knowledge from you, and the projection should be based on latitude and longitude.
2. OnlineMapsControlBaseDynamicMesh.GetWorldPosition
http://infinity-code.com/doxygen/online … 6316068362
3. Yes, if these objects are 2D or 3D markers.
Otherwise, you need to update their position yourself when changing the position or scale of the map.
4. No, Online Maps cannot automatically use GeoJSON.
5. No, the current version of Online Maps cannot use vector tiles.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.