I'm not a programmer - I purchased a theme but my theme developer will
not provide support for this. He just added a Google Maps feature to
his real estate theme. Most traditional real estate sites will input
an address, city, state, and zip for each listing. Mine is not a
traditional real estate site and so there are times when I will only
have the state; not the city or zip. In these cases currently, the
Google Map will display the WRONG (ie default) location which I
definitely want to avoid.

I would like to know the code for situations where if I only input the
state, for example Maine, then the map will display the Maine state
map in those circumstances, instead of the completely wrong location.

Many thanks.

Here is a link to the situation where I only supply a state and
default (WRONG) location is showing: http://mcssafehomes.com/?p=105
(map is at bottom of page)

And here is a link to a posting where the correct location is
displaying: http://mcssafehomes.com/?p=285

Here is the code snippet where I believe the issue to be:

            new GSmapSearchControl(
                  document.getElementById("mapsearch"),
                  ", <?php if(get_post_meta($post->ID, "city_value",
"state_value", "zip_value", $single = true) !="") : ?><?php echo
get_post_meta($post->ID, "city_value", $single = true); ?>, <?php echo
get_post_meta($post->ID, "state_value", $single = true); ?>, <?php
echo get_post_meta($post->ID, "zip_value", $single = true); ?><?php
endif; ?>",
                  options
                  );
          }
          GSearch.setOnLoadCallback(LoadMapSearchControl);
        </script>

Many thanks!!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to