This widget adds a mobile-optimised Google Static Map Image with a colored pin centered on a destination of your choosing.
SO Mobile Map Widget is meant for websites that target browsing via mobile devices. This widget adds a mobile-optimised Static Google Map Image with a colored pin centered on your destination. Once clicked it opens the Google mobile maps website where you can fill in your Current Location if it is not already there. Then you can see the directions from your location to the destination as well as the map with the route of your choice. Optimised for mobile use. Google Static Maps API-key is optional.
The reason I developed the SO Mobile Map Widget as a plugin, is because while implementing the widget for a mobile framework I am building for the hospitality industry, I realised that this widget can come in handy for many other scenarios too. You can include it on your company website to help people find your office location from whereever in the city they are. A travel information site can use it to include maps of tourist attractions, bars and restaurants can use it, you can use it to direct people to your new home, it can even come in handy for if you organise a party with a location that is kept secret till the very last moment!
I used the Static Maps API V2 Developer Guide to build the URLs needed to show the Static Map Image as well as the proper link.
Once activated you can go to your Widgets (under Appearance in your backend) and drag the SO Mobile Map Widget to the sidebar of your choice. When you have placed the widget in a sidebar you need to fill in the following data:
Destination. Since 2014.07.30 you can add an address or use the coordinates. I have kept the link to Google Maps API Example: Simple Geocoding if only so you can check whether the output of your address is correct and/or to tweak the exact location. The map will also be automatically centered on this location.
Color of the pin. You can choose from black, brown, green, purple, yellow, blue, gray, orange, red, white.
Zoom level. From 0 (world view) to 21+ (streetview); from 15 and up seems to be good for locations in larger cities, but best to check and play around with it a bit.
Width in pixels. The image width will be automatically scaled to optimise for mobile screens.
Height in pixels.
Google Static Maps API Key (REQUIRED). Since version 2014.12.26 the API key is required. Please find here the instructions on generating the key.
Description (optional). You can use this field to add a description under the map image, for example to inform your visitors that the image is clickable.
Now you can save the widget and visit your website from a mobile device. When you click on the Static Map Image you will be directed to a Google Maps website that looks the same in almost all mobile browsers. If the site doesn't automatically fill in your Current Location (it helps if you have your GPS turned on), you can always type it in. Then it will give you the different possible routes on how to get to the destination, by different modes of transport where available. Once you are looking at the map, you can also choose between the different available Map Layers.
You can of course also visit your site from a desktop or laptop computer, but as those devices do not have a GPS locator, they won't automatically fill in your Current Location.
I have decided to only support this plugin through Github. Therefore, if you have any questions, need help and/or want to make a feature request, please open an issue over at Github. You can also browse through open and closed issues to find what you are looking for and perhaps even help others.
PLEASE DO NOT POST YOUR ISSUES VIA THE WORDPRESS FORUMS
Thanks for your understanding and cooperation.
Requires: 4.0 or higher
Compatible up to: 4.3
Last Updated: 2015-8-5
Active Installs: 800+
0 of 1 support threads in the last two months have been resolved.
Got something to say? Need help?