• CommentAuthorGovind
    • CommentTimeSep 8th 2011
     
    Hi,
    I am getting a blank map with only Div borders visible.

    here is my code:

    <script type="text/javascript" src="telogis.geobase.js"></script>
    <script type="text/javascript">
    var main = function () {

    var GeoBase = Telogis.GeoBase;
    var Map = Telogis.GeoBase.Widgets.Map;
    var Size = Telogis.GeoBase.Size;
    var map = new Map ({
    id: "divSample",
    size: new Size (200, 180)
    });

    };
    onload = main;

    Do i need to do anything more to show a map?
    • CommentAuthorSharonD
    • CommentTimeSep 9th 2011
     
    Hi,

    It looks like you are missing the authentication part. Have you tried our JavaScript samples? They should be located in ...\Program Files\Telogis\GeoBase\GeoStream\server\scripts

    You can start with tutorial.simple-map.aspx, which simply creates a map. You can also check the walkthrough in GeoBase documentation: http://docs.geobase.info/html/0a054a7d-9ed3-4e73-aa80-f29e8a1c912b.htm

    Kind regards,
    Sharon
    • CommentAuthorGovind
    • CommentTimeSep 9th 2011
     
    Hi Sharon,

    I tried the Samples only and even went through the documentation, and only after that i found that I am getting empty map.

    Regards,

    Govind M. Kotkundwar
    • CommentAuthorGovind
    • CommentTimeSep 9th 2011
     
    Hi Sharon,

    Following is my code and i am still getting a empty map...

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>Simple Map Demo</title>

    <script type="text/javascript" src='telogis.geobase.js'></script>
    <script type="text/javascript">
    var tiles;
    var map;
    var main = function ()
    {
    Telogis.GeoBase.setService (["/GeoStream"]);
    Telogis.GeoBase.setAuthToken ("634de3f2-ee63-1012-04ff-790f21a79426", 86400000);
    map = new Telogis.GeoBase.Widgets.Map({ id: 'main_map', createTiles: false });
    tiles = new Telogis.GeoBase.MapLayers.TileLayer({
    id: 'main_map',
    map: map,
    tileConfig: {satellite: false}
    });
    };
    function geocode()
    {
    var address = document.getElementById('search_field').value;
    var country = document.getElementById('country_field').value;
    Telogis.GeoBase.GeoCoder.geoCode (address, country, process_geocode);
    }

    function process_geocode(results)
    { // results is an array of addresses that match the search string
    if (results.length > 0)
    {
    alert('1');
    // each address has a location (coordinate) property
    var loc = results[0].getLocation();
    map.pan(loc); // pan to top search result
    map.setZoomIndex (16); // zoom the map – higher number is a closer zoom
    }
    else alert ('No matching addresses were found.');
    }
    </script>
    </head>
    <body onload="main ();">
    <div id="main_map" style="position: absolute; left: 10px; top: 10px; border: 1px
    solid black; width: 800px; height: 600px;">
    </div>
    <div id="controls" style="position: absolute; left: 10px; top: 620px;">
    <input type="text" id="search_field" style="width: 250px;" />
    <input type="text" id="country_field" style="width: 50px;" value="USA" />
    <input type="button" value="Search" onclick="geocode();" />
    <input type="checkbox" id="satellite_checkbox" style="margin-left:
    250px"/>Show satellite imagery
    </div>
    </body>
    </html>


    even the samples are not displaying Map.

    Regards,

    Govind M. Kotkundwar
    • CommentAuthorSharonD
    • CommentTimeSep 12th 2011
     
    This issue has already been solved in a support case. Data files were missing in the data path. Once added the user could see the map
    • CommentAuthorGovind
    • CommentTimeSep 12th 2011
     
    Thanks Sheron.

    Regards,

    Govind M. Kotkundwar
    • CommentAuthorRocco
    • CommentTimeNov 17th 2011
     
    Hi Sharon,
    I have the some problem "Getting a empty map".
    I have used "Creating a Simple Map" simple-map.aspx, I have download a map and saved into "...\GeoBase\GeoBaseResources\Data\gb.3.7".
    I cheked also -> Don't see a map? Refer to Troubleshooting a GeoStream Server
    I have used http://localhost/GeoStream/tile.aspx?t=0,0,300,4,1 but empty map still appear, and no error message !

    Can you help me to understand where is the mistake?
    Tmk - rocco
  1.  
    Hi Rocco,

    If you've tried viewing the test URL as described in the documents and received a blank tile, but no error message, then it suggests your GeoStream server is working correctly. The tile coordinates in the test string, http://localhost/GeoStream/tile.aspx?t=0,0,300,4,1 , generate a tile for an area around South Africa; if you only have the USA Pacific West sample data, you will not have mapdata for this tile, so an empty tile is correct.

    On the start menu, you should have links to Javascript demos, under Telogis GeoBase Developer's Kit. If you start the demo "Simple Map", can you see map data? If this tutorial is working, but your own code is not, I would suggest comparing the code to see what may be causing the issue. It's possible that the issue may be caused by missing out the Authentication components from your JavaScript.

    If the tutorial also does not work, then it may be your .gbfs Map Data files are in the wrong location. If you've done a regular workstation install, then they should be in C:\Program Files (x86)\Telogis\GeoBase\GeoBaseResources\Data\gb.3.7 - you can test them by starting our Map Explorer .NET sample application, also on your Start Menu, which looks for local data in this location.

    If you have done a GeoStream Only install, which installs directly into wwwroot, then the .gbfs map data files should be in c:\inetpub\wwwroot\GeoStream\bin\data

    If you're still having trouble after trying the above, drop us a mail on gbsupport@telogis.com, and we'll do our best to get you up and running.

    Thanks,

    Alex
    • CommentAuthorRocco
    • CommentTimeNov 18th 2011
     
    Hi Alex,
    with your help it is much easier. Now my example works regularly. !!!

    Now another question: how can I get a license to remove the message: "GEOBASE TRIAL xx DAYS REMAIN NO COMMERCIAL USE ..." from the map ?
    Thanks again
    Rocco
    •  
      CommentAuthorSeanS
    • CommentTimeNov 18th 2011
     
    Rocco,

    For that you'll need a regular evaluation license and that requires contact with a regional Account Manager. The best thing to do is mail gbsupport@telogis.com and let us know your company name and what you plan on using GeoBase for and we'll get the correct Account Manager to contact you. That will also allow you access to more evaluation data if needed.

    thank you,
    Sean