I think you are referring to vars like
If that's the case you are right those can and probably should move into the functions where they are used.
Could anybody help me in writing some code whose comments are in Capital letters in the code below?
Also pl. confirm whether I am in the right direction?
I will be really grateful if anybody can help me out including writing the controller for these two features and storing the coordinates in the db. Today I spent the entire day but was not successful.
Thanking you in anticipation
I am able to solve the first issue. I needed to add checks in map.tpl instead of relying upon pure client-side JS solution.