Export to GitHub

google-maps-icons - issue #386

Google map pin numeric icons: Higher numbers


Posted on Aug 23, 2011 by Happy Lion

Please report issues/requests in the new website : http://mapicons.nicolasmollet.com Hi,

I am using dynamic map pin icons with numbers inside pin goes as high as 300. The numeric values inside pin holds good till 99 but it comes out of pin after 100. I need to define text color as well pin color to differentiate based on the category of markers. i am using it as: http://chart.apis.google.com/chartchst=d_map_pin_letter&chld=100|0093D0|FFFFFF . I need font inside to be white all the time and pin color and pin number is dynamic based on category it represents.

This is how i am using it

function iconimage(category , number, color ) { var image = new google.maps.MarkerImage('http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=' + number + '|' + color + '|FFFFFF', new google.maps.Size(46, 30), new google.maps.Point(0, 0)); return image;

};

but i am not able to set the size of icon new google.maps.Size(46, 30),. Is there a way to adjust the size of pin or font size of text to fit inside if numeric value is more than 100.

Comment #1

Posted on Aug 23, 2011 by Quick Wombat

This site is not related with Google. Please ask your question on Google maps forums. Cheers

Status: WontFix

Labels:
Type-Enhancement Priority-Medium