+ Reply to Thread
Results 1 to 5 of 5

Thread: Coding for my map search?

  1. #1
    Join Date
    Feb 2007
    Posts
    440

    Default Coding for my map search?

    My coder is trying to make a custom map search work on my website that he is building. On most computers it works and on others it does not. Does anyone know what would be causing this? Also, is there any way to make the properties show up quicker than they do? People are going to leave my website if they don't show up quicker. Thanks for your help.
    http://realestate-holland.com/mapSearch.cfm

  2. #2
    Join Date
    Aug 2007
    Posts
    4

    Default Re: Coding for my map search?

    What do you mean it doesn't work on some computers? It doesn't show up, or the code breaks?

    The lag could be from Google Maps. I have site that uses maps for the properties, and sometimes it can take up to a minute for the maps to all load.

    The searches loaded quickly for me.

  3. #3
    Join Date
    Feb 2007
    Posts
    440

    Default Re: Coding for my map search?

    The little home pin points dont show up.

  4. #4
    Join Date
    Oct 2006
    Location
    Alpharetta
    Posts
    4,447

    Default Re: Coding for my map search?

    Is it in Firefox that they do not show up? I have maps on my website that don't work in FF.
    For up to date information about the Atlanta real estate market, please visit my Atlanta Real Estate blog. I live in Alpharetta and love to talk about and sell Alpharetta real estate. I am a Member of the Institute for Luxury Home Marketing and I am a Certified Luxury Home Marketing Specialist. I also belong to the Atlanta homes of Distinction.

    Ryan Ward - REALTORŪ, CDPE, CLHMS, ILHM
    Premier Atlanta Real Estate - Keller Williams Realty Consultants.
    Direct: (404) 630-3187

  5. #5
    Join Date
    Feb 2007
    Posts
    440

    Default Re: Coding for my map search?

    well it doesnt work in firefox, but also internet explorer. I will post you a message that my coder posted on another website, looking for help.

    Posted: Thu Aug 09, 2007 5:49 am Post subject: Need Assistance

    --------------------------------------------------------------------------------

    Hello everyone,

    I am creating a real-estate website. My client has thousands of properties in his database and wanted them displayed using the google map api.

    I love working with flash and found the GMap component which I am really starting to love.

    I have a few questions about the component. If anybody has time and is willing to lend me some assistance, it would be greatly appreciated.

    1. Here is the easy question...

    Code:
    map.addKMLLayer({name:"myLayer", noInfo:false, path:"someFile.kml"});


    What does the noInfo parameter do exactly?

    I noticed if there are no placemarks in a KML file, my KML_LOAD_COMPLETE function never gets called. Does this parameter fix that issue?

    2. This second issue only comes up for certain people. I have made sure these people have javascript enabled and have the latest version of flash. For several users no placemarks ever display on the map after the KML file is called. I did a test recently with one of these users, and the MAP_ERROR function gets called but does not have an error message.

    Here is the link to my client's map search:
    http://www.realestate-holland.com/mapSearch.cfm

    Here is the code that we are using in the flash program:
    Code:
    _root.MAP_PROPERTY_TYPE = -1;
    _root.MAP_PRICE_FROM = -1;
    _root.MAP_PRICE_TO = -1;
    _root.MAP_BEDROOMS = -1;
    _root.MAP_BATHROOMS = -1;
    _root.UPDATE_PROPERTIES = 0;

    _root.NEW_CENTER_LATITUDE = 0;
    _root.NEW_CENTER_LONGITUDE = 0;
    _root.cityChanged = 0;
    _root.MAP_CITY = -1;

    _root.loadInProgress = 0;

    _root.myMap.addControl(_root.myMap.GZoomControl()) ;
    _root.myMap.addControl(_root.myMap.GPositionContro l());
    _root.myMap.addControl(_root.myMap.GNavigatorContr ol());

    _root.layer;

    _root.myMap.addEventListener("MAP_ON_DRAG_STOP", updateMarkers);

    function updateMarkers()
    {
    _root.loadInProgress = 1;
    _root.loadingClip._visible = true;

    var center = _root.myMap.getCenter();

    _root.centerLatitudeRadians = center.lat * Math.PI / 180;
    _root.centerLongitudeRadians = center.lng * Math.PI / 180;

    _root.myLayerURL = "http://www.realestate-holland.com/kml/propertyList.cfm?requestKML=1";
    _root.myLayerURL += "&MAP_CITY="+_root.MAP_CITY+"&MAP_PROPERTY_TYPE="+ _root.MAP_PROPERTY_TYPE;
    _root.myLayerURL += "&MAP_PRICE_FROM="+_root.MAP_PRICE_FROM+"&MAP_PRIC E_TO="+_root.MAP_PRICE_TO;
    _root.myLayerURL += "&MAP_BEDROOMS="+_root.MAP_BEDROOMS+"&MAP_BATHROOM S="+_root.MAP_BATHROOMS;
    _root.myLayerURL += "&centerLatRadians="+_root.centerLatitudeRadia ns;
    _root.myLayerURL += "&centerLongRadians="+_root.centerLongitudeRadians ;
    _root.myLayerURL += "&randomNumber="+getTimer()+getTimer()+getTimer()+ getTimer()+getTimer()+getTimer();

    _root.myMap.removeLayers();
    _root.layer = _root.myMap.addKMLLayer({path:_root.myLayerURL});

    _root.layer.addEventListener("KML_LOAD_COMPLETE", KML_LOAD_COMPLETE);
    }

    function KML_LOAD_COMPLETE(evt:Object)
    {
    _root.loadInProgress = 0;
    _root.loadingClip._visible = false;
    }

    _root.myMap.addEventListener("MAP_READY", startInitialUpdate);

    function startInitialUpdate(event:Object)
    {
    updateMarkers();
    }

    _root.myMap.addEventListener("MAP_ERROR", mapErrorHandler);
    _root.layer.addEventListener("LAYER_ERROR", mapErrorHandler);

    _root.errorType = "";
    _root.errorMessage = "";
    _root.errorTarget = "";

    function mapErrorHandler(event:Object)
    {
    trace(event.type);
    trace(event.target);
    trace(event.message);

    _root.errorType = event.type;
    _root.errorMessage = event.message;
    _root.errorTarget = event.target;

    }


    Any suggestions will be greatly appreciated.

    Thank you all in advance!

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts