javascript - Selecting objects inside circle -
is there way draw circle in google maps api, while still being able select , drag objects inside it, pan map inside it?
if try pan map or drag object inside circle, circle moves instead. polygons suffer same issue, can avoided drawing polylines in shape of polygon instead of polygon object; allows drag polygon edges, while not blocking objects inside it. suppose 1 similar using trig approximate circle, seems poor solution.
this due zindex or layering. make sure objects want accessible in polygon/circle objects have higher zindex attribute shape object itself. can add attribute when create each object.
Comments
Post a Comment