Click here to Skip to main content
16,012,046 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
I am using KendoMap to dispaly location and value by marker.
When i mouse over on marker i am able to view the value but my requirement is
value automatically display in the marker when page load like
[^]

My Code:
JavaScript
$("#map").kendoMap({
       center: [30.268107, -97.744821],
       zoom: 1,
       layers: [{
           type: "tile",
           urlTemplate: "http://#= subdomain #.tile2.opencyclemap.org/transport/#= zoom #/#= x #/#= y #.png",
           subdomains: ["a", "b", "c"],
           attribution: "© <a href='http://osm.org/copyright'>OpenStreetMap contributors</a>." +
                        "Tiles courtesy of <a href='http://www.opencyclemap.org/'>Andy Allan</a>"
       }, {
           type: "marker",
           dataSource: {
               data: json.Data
           },
           locationField: "Latitude",
           titleField: "Actual"
       }]
   });


Please help me regarding same.

Thanks
Basheer
Posted
Updated 27-Jan-16 1:21am
v2
Comments
Andy Lanng 27-Jan-16 8:01am    
looks like you got it working?
Basheer Belgod 27-Jan-16 8:16am    
Yes its working but i want to display data in the marker when page loads instead of mouse over on marker.
Andy Lanng 27-Jan-16 8:21am    
It does exactly that when I look at it. All the markers have a number on page load. Are you not seeing that or do you expect different data? Maybe ctrl+F5 to clear the local cache?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900