The following is the map code:
<script src="http://maps.google.com/maps?file=api&v=2{if
$smarty.const.RL_LANG_CODE != '' && $smarty.const.RL_LANG_CODE != 'en'}
&hl={$smarty.const.RL_LANG_CODE}{/if}
&key={$config.google_map_key}" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
var map_zoom = {$config.map_default_zoom};
var address = '{$location.search}';
var show_address = "{$location.show}";
var not_found = '{$lang.not_found}';
var geocoder = '';
var map = '';
{literal}
function load_map()
{
if (GBrowserIsCompatible())
{
map = new GMap2(document.getElementById("map"));
{/literal}
{if $config.map_navigation}
map.setUIToDefault();
{/if}
{literal}
geocoder = new GClientGeocoder();
showAddresses(address, show_address)
}
}
function showAddresses(address, show)
{
if (geocoder)
{
geocoder.getLatLng(address,
function(point)
{
if (!point)
{
$('#error_obj').fadeOut('fast',
function(){
$('#error_message').html('<b>' + address +'</b> - '+
not_found);
$('#error_obj').fadeIn('slow');
$('#notice_obj').fadeOut('fast');
});
}
else
{
map.setCenter(point, map_zoom);
var marker = new GMarker(point,
{draggable: true});
GEvent.addListener(marker,
"mouseout", function() {
map.closeInfoWindow();
});
GEvent.addListener(marker,
"mouseover", function() {
marker.openInfoWindowHtml(show);
});
map.addOverlay(marker);
}
}
);
}
}
{/literal}
//]]>
</script>
So please, can any body help me??
On Aug 21, 1:48 am, "[email protected]" <[email protected]>
wrote:
> On Aug 20, 11:25 am, "Eng. Mosaab" <[email protected]> wrote:
>
>
>
>
>
> > Hi,
>
> > I have a google map on my site which give the users the ability to
> > submit their position on the map by drag the marker to the desired
> > position.
> > The problem is that the marker deviates from its position after the
> > users post the posting. and I guess that the marker deviates to some
> > "known position" on the map instead of stay on its original position.
>
> > Let me explain this. The goole map on my site is rendering the saved
> > coordinates on my database to some to a 'known feature or place' on
> > the map,which has different coordinates from the original position.
>
> > So please, can any help me and let me know how to fix this, which make
> > the map deal with coordinates not with the nearest "known position" to
> > the original coordinates!!!!
>
> How? We can't see your map.
>
> Wild guess. You are reverse geocoding the position, and sending that
> result back to the server. If that is true, don't do it, send back
> the coordinates the user selected.
>
> If that doesn't help, please follow the posting guidelines and provide
> a link to your map that exhibits the problem.
>
> -- Larry
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.