Chris

Forum Replies Created

Viewing 15 posts - 256 through 270 (of 1,120 total)
  • Author
    Posts
  • in reply to: OSM – Loading delay on website #17941
    Chris
    Keymaster

      Just enter the Mapbox access token in the MapPress settings to use Mapbox. There are some details in the documentation.

      in reply to: OSM – Loading delay on website #17939
      Chris
      Keymaster

        Hi,

        I’m not seeing that. My OpenStreetMap test pages are loading in < 1 sec - but it does seem to vary based on time of day. I don't have any control over the speed at which OSM serves tiles, unless you had some suggestion? If you're still seeing slow performance, you could try Google Maps or Leaflet with Mapbox tiles (in which case you won't be using OSM).

        in reply to: hide hamburger menu #17935
        Chris
        Keymaster

          Hi,

          There’s no setting for this but you can hide the toggle button by using CSS:

          .mapp-menu-toggle { display: none; }

          in reply to: scroll zoom with google map #17932
          Chris
          Keymaster

            Hi,

            Unfortunately, setting scrolling on as a default for all maps isn’t supported by the plugin – it can only be done by the shortcode.

            in reply to: scroll zoom with google map #17930
            Chris
            Keymaster

              Hi,

              Google itself doesn’t recommend this because it interferes with page scrolling, but if you want to use it, I’ve added it as a shortcode parameter for version 2.50.

              You can enable it in the shortcode as:
              [mappress scrollwheel="true"]

              And the Leaflet version is:
              [mappress scrollwheelzoom="true"]

              Chris
              Keymaster

                Hi,

                Do you mean you’d like something for Leaflet like the ‘drawing bar’ that Google offers – the one with the line/circle/polygon/rectangle controls?

                in reply to: Change what is displayed when rolling over map points. #17922
                Chris
                Keymaster

                  Hi,

                  What’s displayed on mouseover is the title of the POI.

                  You can set the title from a field when generating the map, or in the settings you can have mashup POIs use the post title they were taken from.

                  If you don’t do either of the above, the title defaults to the street address.

                  in reply to: Geolocation setup from the prior settings #17918
                  Chris
                  Keymaster

                    Hi,

                    Do you mean the geocoding section in the MapPress settings screen? Whatever values you put there should save when you click the ‘save’ button.

                    I’m not sure what might’ve happened in the intervening two days to reset those settings, unless someone clicked on the ‘reset defaults’ button.

                    What happens when you enter a value, save, and then just reload the page?

                    If it happens again, let me know the steps to reproduce it, and I’ll see if it’s a bug.

                    in reply to: Add Icon to the [mappress] short code #17917
                    Chris
                    Keymaster

                      Hi,

                      I think you’re asking about the geocoding settings on the MapPress settings screen.

                      I’m not sure why you needed the extra code. It looks a lot like what’s built into the ‘mappress_meta.php’ file, which also watches the meta events, and updates the map if the meta values have changed.

                      Maybe it’s something to do with ‘pods’ (I’m guessing that’s a custom fields plugin?). Anyway, I’m glad you got it working.

                      in reply to: Google Maps / Remove Streetview Controls? #17913
                      Chris
                      Keymaster

                        Hi,

                        I removed the streetviewcontrol=false option because it didn’t seem anyone was using it. I’ll add it back in for the next version, 2.50, which should be released early next week.

                        You can hide the hamburger menu with CSS:

                        .mapp-menu-toggle {
                            display: none;
                        }
                        in reply to: Add Icon to the [mappress] short code #17910
                        Chris
                        Keymaster

                          Hi,

                          The shortcode just displays a map, it doesn’t contain the POI info like address, icon, etc.

                          Normally, you can change the icon by just editing the map. Click on the POI, then click on the icon in the POI infowindow to change it.

                          There’s also an ‘automatic icon’ section in the MapPress settings screen, which can be used to default the icon based on tag/category, etc.

                          Please see the documentation for more details on both approaches above.

                          in reply to: .resize is not a function #17905
                          Chris
                          Keymaster

                            Hi,

                            Thanks for reporting this, it’s a bug in the tab display code – I forgot to update it while adding the Leaflet functionality.

                            It’s fixed in 2.49.8. I’ll publish the update tonight.

                            in reply to: Zoom function not working anymore #17903
                            Chris
                            Keymaster

                              Hi,

                              Sorry – I checked the page and saw you’re using a mashup with only one location (so I assumed it was a map).

                              Mashups currently center & zoom automatically.

                              The ‘minzoom’ parameter might work for you. It locks the minimum zoom level of the map:

                              [mappress query="all" minzoom="8"]

                              in reply to: Zoom function not working anymore #17902
                              Chris
                              Keymaster

                                Hi,

                                As far as I know, the default zoom and shortcode are working.

                                Did you save the map with its center and zoom? It’s a checkbox in the map editor in the current version or in the ‘hamburger’ menu in older versions.

                                If that doesn’t help, please provide the shortcode you’re using.

                                in reply to: Styled maps #17898
                                Chris
                                Keymaster

                                  Hi,

                                  The plugin supports MapBox Studio styled maps for Leaflet (as well as Google styled maps). But you need to use the latest MapPress (2.49.7) and create a PHP filter.

                                  I’ll write this up more fully in the documentation, but here’s an overview.

                                  MapBox Studio is here:
                                  https://www.mapbox.com/studio/styles/

                                  After you make your Studio style, get its URL:
                                  1) Click the menu next to the style, select ‘share, develop and use’
                                  2) Scroll down to ‘develop with this style’
                                  3) Go to the ‘leaflet’ tab. Copy that URL

                                  Now edit your theme’s functions.php file and create a filter to add the new style. Replace with the URL from step 3 above:

                                  <?php
                                  function mystyles($baselayers) {
                                    $baselayers[] = array(
                                      'provider' => 'mapbox-studio',
                                      'id' => 'mystyle',
                                      'name' => 'mystyle',
                                      'label' => __('My style'),
                                      'url' => '<YOUR URL GOES HERE>'
                                    );	
                                    return $baselayers;
                                  }
                                  
                                  add_filter('mappress_baselayers', 'mystyles');

                                Viewing 15 posts - 256 through 270 (of 1,120 total)