View map

View map 1.7

No permission to download
Note
Compatible XF 2.x versions: 2.0, 2.1, 2.2
Description:

Creates a button called View map for use in messages.

Clicking the View map button will show a Google map with a marker to a specific location.

Live Example:

https://www.southbayriders.com/forums/threads/2180/

(Example of View map button in thread view)

pic001.jpg


(Example of View map button in thread view after clicking)

pic002.jpg


(Example of View map link in visitors tab)

pic003.jpg


(Example of View map page)

pic004.jpg


(Example of Options page)

pic005.jpg


Features:
  1. Click View map button in a message to show the map to specific location.
  2. Bring up larger map from link in Visitors tab.
  3. All phrases start with viewmap_ for your convenience.
Setup step 1:

Copy the crosshair.gif from the add-on directory to a directory of your choice, for example copy to the a /misc/ folder off the web root. Update the Options page with your crosshair.gif file location.

Setup step 2:

Get your Google JavaScript API key using this link:

https://developers.google.com/maps/documentation/javascript/get-api-key

Update the Options page with your Google JavaScript API key.

Setup step 3:

In the Options page, add your default coordinates and zoom.

How to create a View map button in a message:
  1. Under the Visitors tab, click the View map link.
  2. Move map to desired location.
  3. Copy the Map code at the bottom and paste it into a message.

    Example of map code:

    pic006.jpg
  • Like
Reactions: Napperd
Author
Andy
Downloads
121
Views
1,356
First release
Last update
Rating
0.00 star(s) 0 ratings

Share this resource

Latest updates

  1. See description

    View map v1.7 changes: Improved map display for smaller screens. Updated Information page.
  2. See description

    View map v1.6 changes: Out of range coordinates will now place the marker at a default location.
  3. See description

    View map v1.5 changes: The View map button in messages will now show/hide the map below the button.
Similar resources
Resource starter Title Category Downloads Last update
Andy Resource view count XF2 Addons 69
Andy Street view XF2 Addons 87
Andy Thread view count XF2 Addons 107
Andy View profile XF2 Addons 66
Andy View signature XF2 Addons 45
Andy XFRM view history XF2 Addons 75
Andy Members map XF2 Addons 147
Andy Show map XF2 Addons 69
Top