Nitin
I have updated the googlemapping.xlsm file on
ramblings.mcpher.com
If you go to the VenueMaster tab, you will see 2 columns, markerColor
and markerSize. If you ask it to generate markers with google maps,
you will see it plots varying size and colored circles.
These are defined in the geoCoding parameters sheet like this - in
other words these parameters define the column name to use for size
and color.
color markerColor
size markerSize
If you arrange through excel formulas to have relative values for size
in the markerSize column, a circle will be plotted at each marker of
the size given.
Similarily in the markerColor column, put an html color code - for
example as below.
markerColor markerSize
#20FF00 500000
#0000FF 200000
#00609F 300000
#80FF00 600000
#FF0000 1000000
#0000FF 200000
#00609F 300000
Now, the second piece, for how to modify the colors automatically
instead of entering them manually. You can use all the heatmap
formulas in your sheet, so the formula you can use in the markercolor
column is simply this.
=rgbToHTMLHex(rampLibraryRGB("heatmap",MIN($F$2:$F$8),MAX($F$2:$F
$8),F2))
for other color scales, or to create your own, take a look at
http://ramblings.mcpher.com/Home/excelquirks/snippets/heatmap/lib
The javascript being generated is as follows..( it is easy to adapt
the opacity etc if you want by editing this code in the marker html
section of the geoCodingParametes parameter sheet).
var circle = {
strokeColor: color,
strokeOpacity: 0.8,
strokeWeight: 1,
fillColor: color,
fillOpacity: 0.20,
map: gMap,
center: p,
radius: parseFloat(sz),
};
I hope this gets you on your way.
regards
bruce
On Mar 3, 6:31 pm, Bruce McPherson <
br...@mcpher.com> wrote:
> Nitin
>
> I just noticed your attachment. This looks like all you need is to vary the markers used for each plotted point so it should not be so hard. I will take a look at it over the next few days.
>
> Bruce
>
> Sent from my iPad
>
> > I am looking for mapping on Google map, using Excel data, which have its own parameters in terms of Data Slabs, as the Data slab in the sitehttp://
geocommons.com/have some limitations, e.g.
>
> > The Data slabs, like 0-100, 101-200, 201-300, 301 and above, or of any other kind can not be obtained on the map, as it is an auto generated which does lead to choice of slabs
> > The Size of the shape on the map can not be varied with the colour also, which may give a broad spectrum in differentiating the data.
> > Please to have such kind of excel vba coding, which shall suffice the desired needs with more modified options in it can be added.
>
> > Thanks!
> > --
> > You received this message because you are subscribed to the Google Groups "Excel Ramblings" group.
> > To view this discussion on the web visithttps://
groups.google.com/d/msg/excel-ramblings/-/6G0O6nHtZH4J.