Here’s the functionality I am looking for:
- When you click on the marker, the marker info shows up.
- When you click on the map in the background, it takes you to a big version of the map. I can create that page on a separate URL.
How do you create the click events for the above?
Also, how do you disable the pan functionality? I tried panControl: false but that didn’t seem to do anything.
panControl just removes the pan control thing that normally appears in the top-left corner, it doesn’t prevent the user actually being able to pan the map. You probably want to set
draggable:falseFor the click events, you do something like: