Vanilla Adaptive Maps Icon

Vanilla Adaptive Maps

By jcdesign

Active Installs

90+

Last Updated

September 22, 2015

First Released

September 22, 2015

Download History (Last one month)


Contributors

A way to include an Adaptive Map, based on Brad Frost’s Adaptive Maps pattern, without requiring an external JavaScript library.

The basic premise is that we should be using mobile devices’ far better-suited mapping applications rather than attempting to frame maps in our own websites. Users w/ larger screens will get a full map in an iframe.

No styling has been provided, but the link and map are wrapped in div.adaptive-map.

Credits

All props to Brad Frost who presented the idea quite a while ago.

  1. Upload the vanilla-adaptive-maps folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

To use, write a shortcode like this: [vamap addr="1203 Pearl St, Boulder, CO 80302"]

To include a responsive map in a theme template, write the following PHP:

<?php echo do_shortcode('[vamap addr="1203 Pearl St, Boulder, CO 80302"]'); ?>

What is the breakpoint between mobile and desktop?

Right now, the breakpoint is set at 550px, which was the default in Brad’s model, and seems reasonable to me.

Can I change the breakpoint for switching from mobile to desktop?

Yes, although you’ll have to modify the plugin. Open vanilla-adaptive-maps.php and look for set_breakpoint. You can change the number there.

Right now we are only supporting a pixel-based breakpoint. I want to change that, though.

Changelog

1.0.1

  • Files reorganized. No code changes.

1.0

  • Initial release.
<br />
<b>Warning</b>:  Undefined array key /home/ylinkin/truewp.net/wp-content/plugins/truewp-plugin-info/truewp-plugin-info.php on line 756
" width="120" height="120">

Available Versions

Version Download Type
1.0.1 Download Stable
1.0 Download Stable
Development Download Trunk

Plugin Info

  • Version: 1.0.1
  • Last Updated: September 22, 2015
  • Active Installs: 90+
  • WordPress Version: 3.3 or higher
  • Tested up to: 4.3.34
  • PHP Version: or higher
  • Tags:    
    google-maps map responsive shortcode

Ratings


0.0 out of 5 stars. (0 reviews)

See all reviews
Scroll to Top