开发者

Google Maps API: colouring locations

开发者 https://www.devze.com 2023-01-11 12:38 出处:网络
Apologies if this is dead simple.. I can see that it\'s possible to draw on an area using overlays, but is it possible to just draw(colour) a location (a pair of longitude and latit开发者_JAVA百科ud

Apologies if this is dead simple..

I can see that it's possible to draw on an area using overlays, but is it possible to just draw(colour) a location (a pair of longitude and latit开发者_JAVA百科ude coordinates)?

I need to colour a map by specifying a colour for every location I have available in my database.

I'm also a bit concerned about the speed.

Any ideas/advice welcome!

Thanks


A lat/lon pair represents a point, and a point has zero size. You cannot color something that has no size, therefore you need to represent those points with something bigger than a point, like a marker or a polygon, both of which are overlays.

0

精彩评论

暂无评论...
验证码 换一张
取 消