Hello,
I have a client who deals solely in commercial properties who wanted to replace the “house” icon that appears in map searches. I’ve created a 16×16 .png for this purpose: http://jgreen.idxcentral.net/wp-content/uploads/2015/06/buildingicon.png I’m just not sure how to get this image to display in place of the existing house image on map searches.
An member of IDXBroker’s support staff provided this javascript, and added it to the map search’s sub-header:
<!– @code –>
<!– code for changing map pins
<script type=”text/javascript”>
var pinTypes = {
“active”: {“icon”:”URL”, “typeName”:”IDX-pin”, “width”: 16, “height”:
16},
“featured”: {“icon”:”URL”, “typeName”:”IDX-pin”, “width”: 16,”height”:
16},
“soldPending”: {“icon”:”URL”,”typeName”:”IDX-pin”,”width”: 16,
“height”: 16},
“supplemental”: {“icon”:”URL”, “typeName”:”IDX-pin”, “width”:
16,”height”: 16}
};
</script>
–>
Is there anything else I need for this to work (any additional CSS)?
http://jgcre.idxbroker.com/idx/map/mapsearch
I replaced the URL in the javascript with the URL of the image, but it
still didn’t work after I saved the changes (and cleared the wrapper
cache). Thanks, Josh (josh@idxcentral.com)
(
0 rating, 0 votes, rated)
You need to be a registered member to rate this post.Loading...