Polyline is showing as pushpin
-
2011年6月7日 上午 05:40
Hi,
I am trying to create a number of polylines in Javascript. For some reason, bing maps automatically/randomly adds pushpins in the middle of some of these polylines.
Does anyone know why this is the default behaviour and how I can override it?
Thanks!
Sharma M.
所有回覆
-
2011年6月7日 上午 05:45
By default, all shapes shows pushpin in v6.3. Use VEShape.HideIcon() to hide pushpin. More of it @ http://msdn.microsoft.com/en-us/library/bb412468.aspx
HemantGoyal- 已標示為解答 Richard_BrundrittMicrosoft Employee, Moderator 2011年6月7日 下午 01:04
- 已取消標示為解答 M_Sharma 2011年6月8日 上午 11:46
-
2011年6月7日 上午 05:53
Hi Hemant,
I'm using v=6.2. In polylines I'm setting custom icon ( like shape.SetCustomIcon(IMAGE LOCATION)) so it shows image as per given image location but on some case it display Pushpin..
Sharma M. -
2011年6月7日 上午 08:41Post the code where you add the polygon and set the custom icon if you want a more precise look.
MVP - Bing Maps - My blog (FR): http://blogs.developpeur.org/nicoboo/ Twitter: http://twitter.com/nicolasboonaert/ -
2011年6月8日 上午 11:51
Hi,
In my case I try number of times to regenerate the issue but could not succeded.
As I written in my question this problem occurs some time ( priority to occurence of this issue is very less) So I change my code .
If shape type is polyline and we did not set customIcon that shape will be as Pushpin.
so I add default Icon in each shape,so that if the problem arised , Pushpin will not be displayed.
Now hopefully my problem is solved.
Thanks
Sharma M.- 已編輯 M_Sharma 2011年6月8日 上午 11:55
-
2011年6月8日 上午 11:52
In my case I try number of times to regenerate the issue but could not succeded.
As I written in my question this problem occurs some time ( priority to occurence of this issue is very less) So I change my code .
If shape type is polyline and we did not set customIcon that shape will be as Pushpin.
so I add default Icon in each shape,so that if the problem arised , Pushpin will not be displayed.
Now hopefully my problem is solved.
Thanks
Sharma M.Even though I'm marking this as Answer , in future someone get any other better solution they can mark them as answer.But if not then my reply will be helpful.
Sharma M.
- 已標示為解答 M_Sharma 2011年6月8日 下午 12:06

