1
There’s a part on my site where there’s a select
with several places in Brazil. When selecting a place, just below has a iframe
with Googlemaps that automatically updates to the coordinate corresponding to the selected location.
The problem is that some coordinates don’t appear right. The location indicated is different from the correct one, maybe because the location is not registered in Google or because it was not really mapped.
In some cases it even shows the correct area of the location, but without any markup. Example:
There should be a marker in the middle of this brown terrain.
The code for the iframe
that I’m using is this:
<iframe width="734" height="302" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?ie=UTF8&hq=&hnear=&t=m&iwloc=A&ll=COORDENADA_AQUI&spn=0,0&output=embed"></iframe>
Would anyone have a solution to that?
I thought I’d use the API
maps to generate the codes, but since they are several places (approx. 10), it could generate some conflict or it would be difficult to rescue the coordinates from the database to insert them to the javascript
.
Well, an alternative would be to record all the locations on the same map, and when you select the location, it goes to the corresponding marking. The problem is that when you choose the location on
select
, the content block gives a refresh, as in addition to showing the map, the location information is listed..– Ricardo