Jump to content
Sign in to follow this  
Beyfendi

Java Showing/hiding Overlays Için Yardım ???

Recommended Posts

Java Showing/Hiding overlays için yardım ???

SLM Üstadlar aşağıda çalışan kod grubuna ilave olarak başlık da belirttiğim Showing/Hiding overlays işlemini yaptırmak istiyorum ama nette araştırdığım kodlarla dene yanılma yöntemi ile yapmaya çalıştım olmadı veya beceremdim, rica etsem yardımcı olabilir misiniz.


        <div id="map-container"></div>
        <script type="text/javascript" language="javascript">
            var map;
            $(document).ready(function () {
               var mapOptions = {
                    zoom: 9,
                    center: new google.maps.LatLng(37.8690709, 32.5552064),
                    mapTypeId: google.maps.MapTypeId.HYBRID
               }
               map = new google.maps.Map($("#map-container")[0], mapOptions);

               var ctaLayer = new google.maps.KmlLayer({
                    ’preserveViewport’: true,
                         ’scrollwheel’: true,
                         url: ’http://atlas.tacirinden.com/dosyalar/4201_ATLAS.kmz?o=’ + Math.random()
                         
               });

               ctaLayer.setMap(map);
               ctaLayer.set(’preserveViewport’, true);

               setInterval(function () {reload(); }, 60000);

               var ctaLayerTmp;

               function reload() {

                    var mctaURL = ’http://atlas.tacirinden.com/dosyalar/4201_ATLAS.kmz?o=’ + Math.random()
                    ctaLayerTmp = new google.maps.KmlLayer({
                        url: mctaURL
                    });

                    google.maps.event.addListener(ctaLayerTmp, "status_changed", function() {
                        ctaLayer.setMap(null);
                        ctaLayerTmp.set(’preserveViewport’, true);
                        ctaLayer = ctaLayerTmp;                     
                    });
                    ctaLayerTmp.setMap(map);
               }
               ctaLayer.setMap(map);
            });

 

yapmak istediğim yukarıdaki kodlara aşağıda verdiğim linkedini entegre etmek, yardımcı olabilecek üstadlara şimdiden teşekkür ederim,  Allah razı olsun,

Please login or register to see this link.

 

Bindirme yapılacak olan jpg dosya uzantısı

Please login or register to see this link.

Edited by Beyfendi

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...