YUCEL
YUCEL

Talking about my Salesforce.com and MuleSoft experience

Edgar Moran
Author

Software Engineer, passionate for tech stuff video and photography, Salesforce and Mulesoft developer

Share


Our Newsletter


Subscribe to get new post notifications.

* indicates required

Tags


Twitter


YUCEL

How to check if two polygons intersects in the same location (Google Maps | JQuery | Visualforce)

Edgar MoranEdgar Moran

Creating a polygon in a google map is not really a big deal, basically you are creating a set of locations and storing them GEOJson which it contains all the informaiton we need to draw the graphic poligon in the map. Now, as part of a business process maybe you wanna check if a couple of polygons interects each other in the same location, it can be usefull in orther to handle groups and zones.

For this sample, wi will use a very short script that at least will identify this intersections

the final result is something like this:

Screen-Shot-2018-05-04-at-8.45.37-AM

And you can try it in this DEMO page: Try it

Edgar Moran
Author

Edgar Moran

Software Engineer, passionate for tech stuff video and photography, Salesforce and Mulesoft developer

Comments