Topic: Drawing property boundaries

Apologies for not being able to figure this out...

Basically, I have GeoJSON data defining the boundaries of some land. I'm able to convert this to an array of Vector2's to create a polygon of the lat/lon pairs that define the property, but I haven't been able to figure out how to draw them precisely on the map (I'm using Google Maps "Relief" if that makes a difference).

Accuracy is important because at the end of the day I have to hand it all over to an architect.

Oh, and I'll need to be able to zoom and rotate them along with the map, because some parcels are in LA, some are in Seattle, and some are just plain random houses...

Any examples I can follow?

Thanks in advance.

Re: Drawing property boundaries


The right way depends on how much display information your GeoJSON contains.

If it contains up to 1000 points, you can use Drawing API.
Example: … ample.html

If it contains more information you are better off rasterising your data, split this into tiles and use it as an overlay.

Kind Regards,
Infinity Code Team.

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

Re: Drawing property boundaries

Very cool - thanks! It's almost always less that 1000 points per parcel, so I'll try the drawing api. What's the function to convert lat/lon to Unity space?

Re: Drawing property boundaries

I found map.control.GetPosition, but it's telling me that the lat/lon (34.05707469341087, -118.3103567152991) I have for one of our places in California is somewhere between Tierra del Fuego and Antarctica...???

Obviously, I'm missing something.

Re: Drawing property boundaries