• Resolved CharlieAR

    (@charliear)


    Problem is when opening that map to full screen, it displays all of North America and beyond. I want to set the zoom to only show Ontario and the center to be the city of Sudbury. It was easy to get SnazzyMaps to display what I want for area and centering with their Build a Map (not with Create a Style).

    But the solution to copy was HTML using <iframe> which is different from what they let you copy if it’s a Create a Style procedure, which doesn’t include centering or zoom in its options.

    The EM docs I’ve read show I need to get JSON code and then convert it to something I can embed in my shortcode. Currently I use `[locations_map, state=”ON”]’ ON is the abbreviation for the province Ontario.

    I just spent a while searching for answers but I’m back here for help to point me in the right direction.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Currently I use `[locations_map, state=”ON”]’ ON is the abbreviation for the province Ontario.

    Just to make sure…
    EM does not use a dropdown for states (only countries), so it has no predefined list of state abbreviations. See https://wp-events-plugin.com/documentation/event-search-attributes/
    So, using the search attribute state=”ON” will only return locations with the exact “ON” in the State field. There are no partial matches.
    Can you please confirm that you filled out your locations with that value?

    Thread Starter CharlieAR

    (@charliear)

    Yes. I make a point of being consistent that all locations include ON in the State field. You can see the map is already full of pins.

    I’m over at SnazzyMaps help section trying to see if I can understand anything there but I cannot.

    Okay, that’s good!! 😀

    A little confused, though.. Why are you using SnappyMaps? Heard of but never tried it. What is the benefit for you??
    I mean, the current map can also be shown by EM itself.

    Thread Starter CharlieAR

    (@charliear)

    I want to keep within EM as much as possible, BUT the EM documentation about Google Maps made mention of using map styles and in that section it recommends looking at SnazzyMaps to help create JSON. I’d never heard of it before either and possibly it’s not even close to being the solution. I don’t want to use SnazzyMaps. I just want to get the shortcode or something else to zoom and center the map better for my needs. Even if it’s hard coded because it’s always going to be the province of Ontario.

    Look in the section Map Styling, with the all black map and red map pins. Directly below that map is the paragraph.

    I don’t know anything about using JSON or what it even looks like. I’m just following bread crumbs into the coding forest in case I can figure this out myself.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Modify locations_map zoom and center’ is closed to new replies.