Adding pushpins using custom icons for an initial point and different pushpin icons for JSON derived lat,lng positions within raduis of initial point.

Answered Adding pushpins using custom icons for an initial point and different pushpin icons for JSON derived lat,lng positions within raduis of initial point.

  • Tuesday, August 07, 2012 3:26 PM
     
     

    I have json data returned from an SQL DB that contains lat, lng data and a couple text fields.
    I derive this data by defining an initial point on a map and then capture gps positions from the database if they are within a radius of the initial point.  That part is done, I have my filtered JSON data back from the server.
    I need to add a pushpin using a custom icon at the initial position and then place pushpins from the derived json data records using a different pushpin icon.
    Then I need to be able to mouseover the pushpins from the JSON data pushpins to allow a info box to display the 2 text fields.

    I have played with a few tutorials and have generated a working example, but it uses the default pushpins and I am having a problem placing the initial pushpin. here is the example:
    http://www.highwayhistorysites.com/data/mySQL/map.php

    any suggestions are greatly appreciated.

    Thankyou

    Chris

All Replies