-
AuthorPosts
-
jfrederiksen Friend
jfrederiksen
- Join date:
- November 2006
- Posts:
- 39
- Downloads:
- 43
- Uploads:
- 7
- Thanks:
- 14
- Thanked:
- 3 times in 1 posts
February 21, 2015 at 9:33 am #203998Hi,
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 ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
February 24, 2015 at 9:45 am #560502Hi @jfrederiksen,
For further detail about this function you can have a look here and create a custom map here.
emicoma Friendemicoma
- Join date:
- January 2009
- Posts:
- 29
- Downloads:
- 36
- Uploads:
- 1
- Thanked:
- 2 times in 1 posts
June 15, 2015 at 5:47 pm #574121Hi
have you find a solution ?emicoma Friendemicoma
- Join date:
- January 2009
- Posts:
- 29
- Downloads:
- 36
- Uploads:
- 1
- Thanked:
- 2 times in 1 posts
June 15, 2015 at 5:47 pm #640460Hi
have you find a solution ?emicoma Friendemicoma
- Join date:
- January 2009
- Posts:
- 29
- Downloads:
- 36
- Uploads:
- 1
- Thanked:
- 2 times in 1 posts
June 15, 2015 at 5:47 pm #739135Hi
have you find a solution ?Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
emicoma Friendemicoma
- Join date:
- January 2009
- Posts:
- 29
- Downloads:
- 36
- Uploads:
- 1
- Thanked:
- 2 times in 1 posts
June 16, 2015 at 2:51 pm #574249i did..link outdated anyway
i don’t want to change the map, only the markeri 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 ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
June 17, 2015 at 4:19 am #574352Hi @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 ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
June 17, 2015 at 4:19 am #640691Hi @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 ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
June 17, 2015 at 4:19 am #739361Hi @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'
}); -
AuthorPosts
This topic contains 12 replies, has 3 voices, and was last updated by Adam M 9 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum