Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
480
binding custom shapes to additional sql data
posted

I have created custom shape files that work and load successfully.  I now want to link additional business data from a sql source.  Are there any examples or advice on how to accomplish this?

Basic idea: hover over or click a shape and see additional information about what that shape represents, but is not included in the shape file.  I assume I can find out that is shape 1, can I? then can I look at my sql data set and grab additional information I asociate with shape 1?

Parents Reply
  • 480
    posted in reply to Wyatt

     

    I attached a screen shot for reference.

    After I load the xammap I am calling the "loaded" event.  In that event I am looping through the map elements to get the map value.  (The map value is set to the ID number in the shapefile) as I loop through the elements I compare the element.value == a wcf result to match that number to a vendor. when element.value == wcf value I assign the caption.  However, when I look at the result, it seems to be assigning captions to a lot of things, reguardless it looks a mess.  What am I missing?

Children