What is the difference of using png/svg in Pushpin - option icon?


hi,

i add pushpin on map coordinates. want set custom icon pushpin. if use:

- png in icon option, png icon size 100px/100px. png displayed on map - , pushpin point located in middle (center) on png icon, perfect me.

- svg in icon option, svg icon size 100px/100px. svg diplayed on map, pushpin point located in top left side of map. why happening? want svg icon displayed, png - pushpin point in center of svg?

currently pushpin htmlcontent property depricated on bing maps8. have pushpin custom png icon , want when pushpin clicked have border color changed on png icon - selected. way achieve this?

i attached 2 files can see added pushpin icon - svg.

1st attachment current situation

2nd want achieve


i found solution - it's using option - anchor element  , setting point inside it

for example - pushpin option

options["anchor"] = new microsoft.maps.point(20,20);




Bing Maps  >  Bing Maps General



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'