JetkeySmartMap Send comments on this topic.
Drawing Circles

Glossary Item Box

One way to draw a circle on Smart Map is to pass values through the querystring. 

 

 

Example 1

This example draws a 500 mile radius circle with Paris as the center point:

http://smartmap.jetkey.com/Example/tabid/54/Default.aspx?lat=48.85&lng=2.347&qid=2&geometry=circle&radius=500&bordercolor=green&borderwidth=2&fillcolor=blue&fillopacity=.25

Countries within 500 Mile Radius of Paris
EnlargeClick to enlarge
 

Example 2

Ten mile radius circle around Moscow, Russia.
http://smartmap.jetkey.com/Example/tabid/54/Default.aspx?q=Moscow&geometry=circle&radius=10&bordercolor=green&fillcolor=green&fillopacity=.3
Circle around Moscow
EnlargeClick to enlarge
 

Querystring Parameters

Here is a list of parameters that you can pass through the querystring to control the look of a circle:

geometry The type of geometric overlay you want to add to the map. In this case "circle"
lat Latitude of the center point. (If this parameter is missing, the current center point of the map is used.)
lng Longitude of the center point.  (If this parameter is missing, the current center point of the map is used.)
radius The radius of the circle in miles.
bordercolor The border color of the circle.
borderwidth The border width in pixels.
borderopacity The opacity of the border line.  Must be a number between 0 and 1.  0 is transparent and 1 is opaque.
fillcolor The fill color of the circle.
fillopacity The opacity of the fill color. Must be a number between 0 and 1.  0 is transparent and 1 is opaque.