This is a migrated thread and some comments may be shown as answers.

Radmap ClientEvents Doesn´t fire

6 Answers 91 Views
Map
This is a migrated thread and some comments may be shown as answers.
jcquinteiro
Top achievements
Rank 1
jcquinteiro asked on 03 Nov 2014, 10:07 PM
Hi,
    1 -  I am trying to work with radmap. I want to call a another page by clicking the marker.
     2 - When I pass the mouse on the marker I show the information of the register but I also want to show the image.

     Please, see the examples of site: http://moving.com.br/mapa

I've attach my files. 

Thanks.

6 Answers, 1 is accepted

Sort by
0
Accepted
Ianko
Telerik team
answered on 06 Nov 2014, 01:19 PM
Hi,

I am unable to directly investigate the scenario via the snapshots.

If you need help on configuring the RadMap control or handling the client-side events, please provide specific details on what troubles you on achieving the expected results.

On a side note, you can find useful details on the RadMap clienti-side events in the online documentation.

Regards,
Ianko
Telerik
0
jcquinteiro
Top achievements
Rank 1
answered on 09 Nov 2014, 03:46 PM
Hi,
    As I show you before, I am trying to reproduce the scenario similar to the map shown in site "moving.com.br".
    When I use radmap to show information lilke this map. the clientevent "OnShapeClick=AbreSiteDetalhesConstrutora"(Construtora_AspNet03.gif) it doesn't fire. Another dificult is that the map layOut presentation is very diferent from them. I think that they are using google maps.
    So, dontĀ“t you have a good example that simulates the scenario like this sites: http://www.moving.com.br,
                                                                                                                                 http://www.epungo.com.br/
                                                                                                                                 http://imovelvip.com.br/
Thank you.
0
Accepted
Ianko
Telerik team
answered on 10 Nov 2014, 06:58 PM
Hi,

The RadMap control enables you to built an application with a Map. The results shown in these sites are built upon specific requirements and the RadMap can be used, although, the configuration and implementation of such application should be built according specific requirements by the developer of the application. Also, such applications use more than a Map control/widget to achieve the desired results.

As for the client-side events, from the description provided I am unable to exactly determine how  they are handled and what exactly is the client-side logic implemented in the OnShapeClick handler method.

On a side node, I cannot firmly define what tile layers has been used in the map widget used in the mentioned application. Moreover, when it comes to integration of Google services with non-google map controls/widgets, I suggest examining their Terms of Service for more information.

Regards,
Ianko
Telerik
0
jcquinteiro
Top achievements
Rank 1
answered on 10 Nov 2014, 09:06 PM
Lanko ,Thanks a lot for your explanations.
       I really have difficulties to finish my project. So, I will study a little more and probably I will use the google maps controls.
By the way, DonĀ“t you have any example or any idea how can I do that ?
Thank you again.
0
Ianko
Telerik team
answered on 12 Nov 2014, 04:06 PM
Hi,

If you need to handle the clicking on marker, you should use the OnMarkerClick event:
<telerik:RadMap runat="server" ID="RadMap1">
    <ClientEvents OnMarkerClick="OnMarkerClick" />
    <MarkersCollection>
        <telerik:MapMarker Shape="pin" Title="Site">
        </telerik:MapMarker>
    </MarkersCollection>
</telerik:RadMap>
 
<script type="text/javascript">
    function OnMarkerClick(evt) {
        window.location.replace('http://www.telerik.com');
    }
</script>


Regards,
Ianko
Telerik
0
jcquinteiro
Top achievements
Rank 1
answered on 12 Nov 2014, 05:14 PM
Hi,Ianko.
     Thanks a lot again for your GOOD EXAMPLE !
     I will really use it when I need to change 6 for "six".

FINISHED!
Tags
Map
Asked by
jcquinteiro
Top achievements
Rank 1
Answers by
Ianko
Telerik team
jcquinteiro
Top achievements
Rank 1
Share this question
or