none
Bing Maps: Radius circle moving to right hand side of screen once live RRS feed

  • Question

  • Hi Everyone,

    I've come across a problem whilst trying to create some radius circles over some pushpins using Ajax V7 Bing Map Control. On my localhost it's fine, everything appears as it should, the rings appear around my central point. However once I view it live they are fixed to the right hand side of the screen away from my centre point and as I move out the circles move also. I have checked the lat and long values of my centre point being passed to the circles and they are correct. I have debugged live and they are correct.

    I'm a little confused at why they are moving. I've searched and searched for the answer online with no joy.

    Friday, September 28, 2012 2:49 PM

Answers

  • ...I feel very embarrassed - the circles were moving due to a centring I had on the td it was in....
    Wednesday, October 3, 2012 3:47 PM

All replies

  • Would it be possible to get a URL to test on? If you don't want to make it public email me at ricky_brundritt at Hotmail dot com.

    http://rbrundritt.wordpress.com

    Friday, September 28, 2012 4:18 PM
  • Hi Richard,

    I haven't unfortunately due to confidentiality. The code I have written isn't complex, it just sets a centre point with a custom icon and then I use this as the centre to place 3 different radius circles over the top. The formula I used to create the circles was from the following: http://msdn.microsoft.com/en-us/library/cc451895.aspx obviously converted to be used with v7. Sorry I can't give you more information!

    Kind Regards,

    Grace

    Tuesday, October 2, 2012 7:43 AM
  • Ok. Well a couple of things to check then. Ensure you are using the proper doctype and metatag as described here: http://msdn.microsoft.com/en-us/library/gg427624.aspx

    Also ensure you are specifying a width, height and position CSS property for your map.

    These are the usual causes of rendering issues.


    http://rbrundritt.wordpress.com

    Tuesday, October 2, 2012 8:26 AM
  • I've been through and double checked the above which is all correct as according to the article. I am thinking that it could be an IIS issue or security issue due to testing it on a number of machines and browsers.

    Tuesday, October 2, 2012 2:06 PM
  • ...I feel very embarrassed - the circles were moving due to a centring I had on the td it was in....
    Wednesday, October 3, 2012 3:47 PM
  • Well at least you solved the issue.

    http://rbrundritt.wordpress.com

    Wednesday, October 3, 2012 4:37 PM