Build with IDX Broker Forums IDX Broker Control Panel Change house property marker image on map search

Viewing 1 reply thread
  • Author
    Posts
    • IDXCentral
      Participant
      Post count: 11

      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 ratings, 0 votes0 ratings, 0 votes (0 rating, 0 votes, rated)
      You need to be a registered member to rate this post.
      Loading...
    • IDXCentral
      Participant
      Post count: 11

      We’ve figured this out–we just needed to: a) put the code in the global sub-header and just used the javascript itself without the comments. Thanks anyways.

      0 ratings, 0 votes0 ratings, 0 votes (0 rating, 0 votes, rated)
      You need to be a registered member to rate this post.
      Loading...
Viewing 1 reply thread
  • You must be logged in to reply to this topic.