- Posts: 2
 - Thank you received: 0
 
Protect URL for KML layer
- lexx
 - Topic Author
 - Offline
 - New Member
 - 
            
         
        Less
        More
        
            
    
        
            
        
                13 years 5 months ago                #666
        by lexx
    
    
            
            
            
            
            
                                
    
                                                
    
        Protect URL for KML layer was created by lexx            
    
        I downloaded Zh GoogleMap yesterday, and in just a few short hours I was up and running with some very impressive maps. I am blown away at how powerful this component is! Dmitry, you're my new hero!
A question I have: is there any way to hide the KML URL path from the HTML page source? I realize that the URL has to be available for the overlay to work, however I am hoping it could be somehow hidden from the html so the kml file can be protected from praying eyes. For instance, if the kml url is something like mysite.com/maps/my_map.kml , perhaps it can be broken down into mysite.com/maps/ and my_map.kml, where the mysite.com/maps/ path leading to the kml is stored in the sql databse.
Any trick you might be able to suggest?
    A question I have: is there any way to hide the KML URL path from the HTML page source? I realize that the URL has to be available for the overlay to work, however I am hoping it could be somehow hidden from the html so the kml file can be protected from praying eyes. For instance, if the kml url is something like mysite.com/maps/my_map.kml , perhaps it can be broken down into mysite.com/maps/ and my_map.kml, where the mysite.com/maps/ path leading to the kml is stored in the sql databse.
Any trick you might be able to suggest?
Please Log in or Create an account to join the conversation.
- Dima
 - 
            
				
                                 - Offline
 - Platinum Member
 - 
            
         
            
        
                13 years 5 months ago                #672
        by Dima
    
    
            
Don't forget support my developments: post review in JED , donate , help with translation
        
    
            
            
            
            
            
                                
    
                                                
    
        Replied by Dima on topic Re: Protect URL for KML layer            
    
        Hi.
Do you want not to see html address to your KML file in page source code?
            Do you want not to see html address to your KML file in page source code?
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
- lexx
 - Topic Author
 - Offline
 - New Member
 - 
            
         
        Less
        More
        
            
    
        - Posts: 2
 - Thank you received: 0
 
            
        
                13 years 5 months ago         -  13 years 5 months ago        #688
        by lexx
    
    
    
            
            
            
            
                                
    
                                                
    
        Replied by lexx on topic Re: Protect URL for KML layer            
    
        Dmitry, thanks for your follow-up. That's right, I don't want to show the URL address to the kml file in the source code, in order to protect the data. The way it is right now, the source code shows something like this in the javascript code:
Is there a way to hide that full path to the kml file? Thanks!
    Code:
var kmlLayer = new google.maps.KmlLayer('http://mysite.com/maps/my-map.kml');
Is there a way to hide that full path to the kml file? Thanks!
        Last edit: 13 years 5 months ago  by lexx.            
            Please Log in or Create an account to join the conversation.
- Dima
 - 
            
				
                                 - Offline
 - Platinum Member
 - 
            
         
            
        
                13 years 5 months ago                #695
        by Dima
    
    
            
Don't forget support my developments: post review in JED , donate , help with translation
        
    
            
            
            
            
            
                                
    
                                                
    
        Replied by Dima on topic Re: Protect URL for KML layer            
    
        Unfortunately, today I can't hide URL, because I have to create HTML page on server, and have to pass this URL into method in page source.
When I finish study JQuery, I think I can, for example do dynamic query for this values and dynamically create method call.
PS. thanks for donation
            When I finish study JQuery, I think I can, for example do dynamic query for this values and dynamically create method call.
PS. thanks for donation
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
- Dima
 - 
            
				
                                 - Offline
 - Platinum Member
 - 
            
         
            
        
                13 years 5 months ago                #696
        by Dima
    
    
            
Don't forget support my developments: post review in JED , donate , help with translation
        
    
            
            
            
            
            
                                
    
                                                
    
        Replied by Dima on topic Re: Protect URL for KML layer            
    
        Hi again.
May be you should use GeoRSS Layers
developers.google.com/maps/documentation...yers?hl=en#KMLLayers
see example "The following example constructs a KmlLayer from the given GeoRSS feed:"
ie you get it by request rss
            May be you should use GeoRSS Layers
developers.google.com/maps/documentation...yers?hl=en#KMLLayers
see example "The following example constructs a KmlLayer from the given GeoRSS feed:"
ie you get it by request rss
Don't forget support my developments: post review in JED , donate , help with translation
Please Log in or Create an account to join the conversation.
        Time to create page: 0.197 seconds