I have two files. 1. Salespeople with IDs and lat/long coordinates 2. Customers with Name, Salesperson ID and lat. long. coordinates
I want plot both customers and sales people locations on the same map, then draw a star map where lines are drawn between each customer and their allocated sales rep...How do I do this please?
I started by loading both files and merging on the ID. This created a file with two sets of latitude longitudes but I can only select one pair of coordinate columns for mapping?. So right now I either get a map with sales reps, or one with customers, depending on which coordinate fields I point the Map View to.
I presume that I should perhaps keep files separate but if so, is their a way to select these from the DataManager and apply to layers in some way. Or how should I do this please? Thanks
The current Map View and connect line doesn't naturally allow for "star maps" (I'm guessing they're just like network maps?). Visokio are developing something with the network view but I don't know if that is applicable here or if it is ready.
Anyways by manipulating the data you can build multiple single line connections to the sales rep. However the way I got this was done by double merging the two data sets in different order (see DataManager connections). Then append the two new sets so that the Map View reads the lat and long of both sales rep and customers in the same column. Use the connect line option and tick the Sales ID and Customer name.
A note, this method works in a small set but if you have very large data sets the number of permutations will scale up so you need to watch the number of records created in this method.
Should be ok as long as the result is not in the millions of rows. If the line bit isn't absolutely necessary, I would just suggest you append the two sets together with the same lat and long columns and use different markers shapes & size to show where the REP is.
Points layering is just appending the point data together into a single data set so its pretty straight forward. The part where you create the star map is what this post is about so vote for it:
I've had a think about this and out of curiosity tested this in Omniscope to the extent you may require it, attached is the result.
The number of records for a 30k customer list wasn't very heavy and just doubled in the way I did it. The map view does 'chug' a bit but use the SID & distance calculation fields to narrow this down and it is usable.
Interesting Daniel and thanks for experimenting. I will try to replicate this if I can get my head round your data flow chart! I am hoping that when the points layer gets added to 2.8 then this can become a whole lot simpler? Maybe a standard function to select the link field and select star map and all builds with distance calculation? Cheers, Graham