Scott,
That’s nearly exactly what I have already achieved with one difference.
I'm developing a site for an area in Ireland and unfortunately like some other countries Ireland hasn't got Zip or Postcodes for addresses. As a result, using the geocoding service of say Google or MSN could show a property or location kilometres from the real location.
To solve that problem my geomapping took the address fields of a listing in EditProperty.acsx and then redrew the map at the bottom of EditProperty.acsx using the nearest result that Google could generate.
This would populate the Lat and Long fields with those new coordinates. I achieved the map redraw using the focus out behaviour.
Then by moving the map icon on the map to the actual location (within a few metres), the Lat and Long fields would be updated with the exact coordinates of the new location of the marker.
The drawback that I have is that this is hard coded into the EditProperty.acsx file, and as I'm also using it for posting listings of cars for sale I haven’t found a method to hide the Map and associated scripts when they are not needed.
This throws up errors in browsers and also means I would have to recode the page after each update of PropertyAgent.
See attached screen shot of the map, lat and long fields.
So, back to what your working on. Will there be an option for a user posting a listing to be able to select the exact coordinates by moving the icon after the map is drawn ?
Usheen |