Home Forums Tucson Template How to calculate an iconanchor

This topic contains 1 reply, has 2 voices, and was last updated by  Support2 3 weeks, 4 days ago. This post has been viewed 90 times

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10026693

    SSANG COOL
    Participant

    Hi team,

    I would like to know whether I can show a google map without using the tag http://maps.google.com/maps/api/js?sensor=false in contact-us.html. I know only the coordinates of Latituden (37.569382) and Longitude (127.020208).

    If so, how can I calculate numbers that I should use in iconanchor: [?, ?] to display pin-logo.png.

    Thanks,
    SSANG


    • This topic was modified 3 weeks, 5 days ago by  SSANG COOL.
    #10026701

    Support2
    Keymaster

    Hello,

    To show the pin at the address you want, you have two options:

    1) Setting an address:

    // Map Markers
    var mapMarkers = [{
        address: "2085 Hwanghak-dong, Jung-gu, Seoul, South Korea", // here you put the address you want to show
        html: "<strong>Seoul Office</strong><br> Seoul, Hwanghak-dong 2085",
        icon: {
            image: "img/pin-logo.png",
            iconsize: [154, 65],
            iconanchor: [77, 65]
        }
    }];

    2) Using latitude and longitude:

    // Map Markers
    var mapMarkers = [{
        latitude: 40.75198,
    	longitude: -73.96978,
        html: "<strong>Seoul Office</strong><br> Seoul, Hwanghak-dong 2085",
        icon: {
            image: "img/pin-logo.png",
            iconsize: [154, 65],
            iconanchor: [77, 65]
        }
    }];

    Please try that and let me know if you need further assistance.

    Kind Regards,

    Rodrigo.


Viewing 2 posts - 1 through 2 (of 2 total)