Noubiss / google-maps-icons

Automatically exported from code.google.com/p/google-maps-icons
0 stars 0 forks source link

Google map pin numeric icons: Higher numbers #386

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by ankur.ba...@gmail.com on 23 Aug 2011 at 8:23

GoogleCodeExporter commented 8 years ago
This site is not related with Google. Please ask your question on Google maps 
forums.
Cheers

Original comment by nico.mol...@gmail.com on 23 Aug 2011 at 8:57