Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I have created a custom module, which creates a layer, and pulls in points/locations from a kml file. All works great.
The KML file creates custom icons per category. The custom icons come up great, different color for each category...
But... they come up the wrong size. Somehow they are getting blown up/expanded from their original 16x16 size.
The map is behind a firewall for now so no URL available.
Something aboput <scale>
?
Any ideas.
Comments
Comment #1
tmcw CreditAttribution: tmcw commentedHi, you're looking for the "scale" parameter in KML styles, documented here by Google. I think that the default for OpenLayers is... 14px wide? But, anyway, use Firebug or whatever to see how large the image elements are being rendered and then do the quick math to find the scale factor to make them the correct size.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedYep, that was it. KML now looks like:
Comment #3
tmcw CreditAttribution: tmcw commentedCool, marking as fixed.