Re: Google maps
Re: Google maps
- Subject: Re: Google maps
- From: Stavros Panidis <email@hidden>
- Date: Tue, 14 Nov 2017 15:58:25 +0200
Dear Flavio,
if I put <div> outside CCGoogleMapMarker I get the list of addresses below the
map and also I get the map and the markers on it, but there is nothing
displayed when I click on each marker's info window. Below is the page source
<div id="myMap" class="in_GoogleMap " data-zoom="10" data-type="ROADMAP"
data-lng="22.941362" data-lat="40.632154"></div>
<hr />
<address id="marker30" class="in_GoogleMapMarker "
data-in_GoogleMap-id="myMap" data-draggable="false" data-address="EMBRYOLAB To
AFFIDEA 1711_1414_12241<br />" data-lng="22.964030" data-lat="40.575127">
</address>
<div style="visibility: hidden;">
<address>EMBRYOLAB To AFFIDEA 1711_1414_12241<br /></address>
</div>
<hr />
<address id="marker10" class="in_GoogleMapMarker "
data-in_GoogleMap-id="myMap" data-draggable="false" data-address="AFFIDEA From
EMBRYOLAB 1711_1414_12241<br />" data-lng="22.953404" data-lat="40.621728">
</address>
<div style="visibility: hidden;">
<address>AFFIDEA From EMBRYOLAB 1711_1414_12241<br /></address>
</div>
<hr />
</div>
If I remove <div style=“visibility:hidden;”> then EVERYTHING WORKS JUST FINE,
the only problem is that below the map the list of addresses is also displayed,
something that certainly is not desirable. Below is also the page source
<div id="myMap" class="in_GoogleMap " data-zoom="10" data-type="ROADMAP"
data-lng="22.941362" data-lat="40.632154"></div>
<hr />
<address id="marker30" class="in_GoogleMapMarker "
data-in_GoogleMap-id="myMap" data-draggable="false" data-address="EMBRYOLAB To
AFFIDEA 1711_1414_12241<br />" data-lng="22.964030" data-lat="40.575127">
<address>EMBRYOLAB Προς AFFIDEA 1711_1414_12241<br /></address>
<hr />
</address>
<address id="marker10" class="in_GoogleMapMarker "
data-in_GoogleMap-id="myMap" data-draggable="false" data-address="AFFIDEA From
EMBRYOLAB 1711_1414_12241<br />" data-lng="22.953404" data-lat="40.621728">
<address>AFFIDEA Από EMBRYOLAB 1711_1414_12241<br /></address>
<hr />
</address>
</div>
I am wondering what is exactly the role of data-address binding when at the
same time there are bindings for lat and lng.
Stavros
> On 14 Nov 2017, at 14:26, Flavio Donadio <email@hidden> wrote:
>
> Stavros,
>
>
> If you use the developer mode in your browser to check the contents of the
> <address> tag, what do you get? Is it empty?
>
> Maybe it’s a problem getting $aMarker.mapInfo ’s value. In this case, there
> should also be a problem setting the address binding on the map markers
> themselves. You’ll have to check the generated HTML.
>
> I don ’t think you need to have this <div> element inside the
> CCGoogleMapMarker especially as there’s no id or class attribute in it,
> making it difficult for JavaScript to find the element for showing and hiding.
>
>
> Regards,
> Flavio
>
>> On 14 Nov 2017, at 02:02, Stavros Panidis <email@hidden
>> <mailto:email@hidden>> wrote:
>>
>> Dear Flavio,
>>
>> I also tried as follows
>>
>> <wo:CCGoogleMap id = "myMap" type = "ROADMAP" lat = "$parameters.map_lat"
>> lng = "$parameters.map_lng" zoom = "$parameters.map_zoom.toString" />
>> <hr />
>> <wo:repetition list = "$mapMarkers" item = "$aMarker">
>> <wo:CCGoogleMapMarker googleMapId = "myMap" lat = "$aMarker.lat" lng =
>> "$aMarker.lng" id = "$aMarker.mapID" address = "$aMarker.mapInfo">
>> <div style="visibility: hidden;">
>> <address><wo:string value = "$aMarker.mapInfo" escapeHTML = "false"
>> /></address>
>> </div>
>> </wo:CCGoogleMapMarker>
>> </wo:repetition>
>>
>>
>> This is also NOT working. Overview map is displayed correctly, markers the
>> map the same, addresses are also hidden but when click to info window it
>> opens empty.
>>
>> Stavros
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden