How to create a custom GControl

I am trying to create a gray “frame” (see the figure below) around the google map to try to convey the concept of the focus area as opposed to a point (which is usually represented by a marker). Please note that this is not an overlay, that is, a gray “frame” "must not move when dragging a map.

Edited: image link added

http://i680.photobucket.com/albums/vv170/bustrofedon_bucket/inage1.jpg

It seems that only the GControl subclass option creates the user control. I have 3 questions.

1) First, does GControl subclass the best course of action?

2) , canvas (div), (.. ). , ? . Docs http://code.google.com/apis/maps/documentation/controls.html#Custom_Controls , .

3) , . , , : . . , . css , , div. , divs, 8. , "" ?

StackOverflow. . , .

+3

Source: https://habr.com/ru/post/1702520/


All Articles