Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • jfrederiksen Friend
    #203998

    Hi,

    Is it possible to change the markers (icons), so I can select different markers for each location I mark?
    Fx. I want to have a special marker if it is for a restaurant and another one if it is for a church or hotel.

    Can I add it in the code?

    If it is not possible, I would like to add it to the suggestion list for this module.

    Regards

    Adam M Moderator
    #560502

    Hi @jfrederiksen,

    For further detail about this function you can have a look here and create a custom map here.

    emicoma Friend
    #574121

    Hi
    have you find a solution ?

    emicoma Friend
    #640460

    Hi
    have you find a solution ?

    emicoma Friend
    #739135

    Hi
    have you find a solution ?

    Adam M Moderator
    #574151

    Hi @vallette,

    Please check my answer above.

    Adam M Moderator
    #640490

    Hi @vallette,

    Please check my answer above.

    Adam M Moderator
    #739165

    Hi @vallette,

    Please check my answer above.

    emicoma Friend
    #574249

    i did..link outdated anyway
    i don’t want to change the map, only the marker

    i used this one : https://developers.google.com/maps/tutorials/customizing/custom-markers

    and tried to changer var marker in script.js like this :

    var iconBase = ‘https://maps.google.com/mapfiles/kml/shapes/’;
    var marker = new google.maps.Marker({
    icon: iconBase + ‘schools_maps.png’,

    but it does not work, i guess it is not enough
    any idea ?

    Adam M Moderator
    #574352

    Hi @vallette,

    Please open file pluginssystemjagooglemapassetsscript.js instead and look for this code :

    var marker = new google.maps.Marker({
    position: results[0].geometry.location,
    map: objMap,
    draggable: true
    });

    regarding instruction for Google Docs, update the code as below :

    var iconBase = 'https://maps.google.com/mapfiles/kml/shapes/';
    var marker = new google.maps.Marker({
    position: results[0].geometry.location,
    map: objMap,
    draggable: true,
    icon: iconBase + 'schools_maps.png'
    });

    Adam M Moderator
    #640691

    Hi @vallette,

    Please open file pluginssystemjagooglemapassetsscript.js instead and look for this code :

    var marker = new google.maps.Marker({
    position: results[0].geometry.location,
    map: objMap,
    draggable: true
    });

    regarding instruction for Google Docs, update the code as below :

    var iconBase = 'https://maps.google.com/mapfiles/kml/shapes/';
    var marker = new google.maps.Marker({
    position: results[0].geometry.location,
    map: objMap,
    draggable: true,
    icon: iconBase + 'schools_maps.png'
    });

    Adam M Moderator
    #739361

    Hi @vallette,

    Please open file pluginssystemjagooglemapassetsscript.js instead and look for this code :

    var marker = new google.maps.Marker({
    position: results[0].geometry.location,
    map: objMap,
    draggable: true
    });

    regarding instruction for Google Docs, update the code as below :

    var iconBase = 'https://maps.google.com/mapfiles/kml/shapes/';
    var marker = new google.maps.Marker({
    position: results[0].geometry.location,
    map: objMap,
    draggable: true,
    icon: iconBase + 'schools_maps.png'
    });

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

This topic contains 12 replies, has 3 voices, and was last updated by  Adam M 8 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum