• Resolved emgb_520

    (@emgb_520)


    I just installed this plugin today and I can’t figure out how to change the location displayed on the map upon page load.

    Please help!

Viewing 15 replies - 1 through 15 (of 17 total)
  • Hi,
    what do you mean by changing location “upon page load”? Usually you set a location for a map on backend by creating a marker map for example and add the related shortcode to a post or page which then shows this location.
    best,
    Robert

    Hi,

    Maybe emgb_520 meant that the default shortcode is not working, not on your demo server, not on 30-day pro trial:

    [mapsmarker lat=”48.216038″ lon=”16.378984″ popuptext=”enter popuptext here” basemap=”mapquest_osm” zoom=”16″ openpopup=”1″ mapwidth=”450″ mapwidthunit=”px” mapheight=”400″]

    Results in:
    Error: a marker with the ID does not exist!
    Error: a layer with the ID does not exist!

    Best,

    Hi,

    you are using “curly-quotes” which are not recognized by WordPress to identify shortcode parameters – please use “regular ones” like these:

    [mapsmarker lat="48.216038" lon="16.378984" popuptext="enter popuptext here" basemap="mapquest_osm" zoom="16" openpopup="1" mapwidth="450" mapwidthunit="px" mapheight="400"]

    best,

    Robert

    Hi,

    Hah ok, thx. but the map load very very slow and finally results in a “issues with map configuration”.

    How to stop all other parameters, that are not used, stop from loading?

    With paramaeters I mean wms, wms2, wms3, wms, ..etc., stamen_terrain, custom_basemap2, custom_basemap3, overlays_custom, overlays_custom2, etc., etc., etc.

    Best

    Hi,

    the shortcode above works for me – see https://dev.mapsmarker.com/pro/2017/06/17/shortcode-test-4/ – loading speed is also normal (is dependend on your internet connection, as map tiles are loaded from external map tile server).

    Regarding additional parameters: if they are not set, no wms or overlay is loaded for example.
    best,

    Robert

    Thread Starter emgb_520

    (@emgb_520)

    I mean, all of my locations are in the US – but when the page loads, the map displays Russia. I thought there might be somewhere within the plugin to set that parameter, but I was not finding it.

    I assume you talk about the default location when creating a new marker or layer map? This can be changed be entering the latitude+longitue values of the desired location (which can be copied after switching to advanced editor) into the related settings fields at Settings / Map Defaults / “Default values for new marker maps” and “Default values for new layer maps”

    Thread Starter emgb_520

    (@emgb_520)

    I have those set to a location in the US, but when I go to the page the map is on, the home page… it shows Russia.

    Please open the (layer?) map on backend and check if the center is correct there. If it is not, please also provide a link to the map

    Thread Starter emgb_520

    (@emgb_520)

    @amgb_520 Your default lat/long is now: 37.961523, -999.999999.
    This is an address in: Hotan, Sinkiang, China.

    According to your contact page, your lat/long is: 39.953965, -86.142200

    Thread Starter emgb_520

    (@emgb_520)

    I am kind of confused. I know the map default is set to an address in Asia. I just need to know where to change it.

    I have the lat and long set to 39.953965, -86.142200 here: Maps Marker/Settings/Map Defaults/Default values for new marker maps (and Default values for new layer maps).

    The default value is used for each new marker map – it can be changed though for each map created (which is what you seemed to have done). So open the existing map on backend, and select a new center by either using geocoding or clicking & zooming with your mouse until you have set the desired center and zoom level ??

    Thread Starter emgb_520

    (@emgb_520)

    That is the explanation I was looking for. I didn’t even realize there was a gray pin that I could drag where I wanted center to be. I have done this, and it did move the map, but it still isn’t centered on where I put the pin.

    you′re welcome & thx rieksie for assisting with support ??

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Default location upon page load’ is closed to new replies.