Powered by Jitbit AspNetForum free trial version.
home recent topics recent posts search register faq   AspNetForum v.4.7.0.0

 AfriGIS MapServer JavaScriptAPI :: Forum

user:
psw:
| lost password
Home » Recent messages recent posts - RSS
1/7/2010 1:33:35 PM
topic: Programmable API

bastet
Posts 1
Hi. I'm trying to find a mapping API that I can use in an internal corporate fleet management application. I need to sed off a start and end latitude, or similar, and get back a map image. Does anyone know if I can do this with AfriGIS, and if not if there are any other companies that would provide these services.
Cheers
Jen
10/9/2009 2:50:53 PM
topic: AGSearch() returning an empty result

Kellros
Posts 1
Good day,

I am having an issue with the AGSearch().search. It doesn't matter what string is searched for, it always returns a Json array with no result ( _d8[0]._hl("{'SearchResults':[]}") ).
On the website www.qvadisministry.co.za (drupal based <php>, I have hooked up the map in the About Us -> Our Location section. The purpose of this is to preset the destination LONG/LAT of the ministry and give users the option to enter their current address and click search. Which in turn would should a list of all search results, where they select their nearest location and then click 'Get Directions'.

The whole business is easy enough, the AGSearch gets the longitude/latitude which is required for the 'From Destination' in AGDirections with the destinations' longitude/latitude already set.

After seeing this repeatedly return with no result, I decided to check if the LuceneSearch used in http://maps.afrigis.co.za/ would return results, but the result was an 403 error (no access, which is good to stop other people/sites from misusing your internal webservice).

Hope this issue will be sorted out soon and thanks to AfriGIS for the use of their services.
9/11/2009 5:13:05 PM
topic: Linking script to the page.

jaredfish
Posts 2
iaan wrote:
Hi

You cannot host the API on your own server.


I understand that I cannot host it on my server. That is not my question. My question is how on earth does the line

<script type="text/javascript" language="javascript" src="http://YOUR_URL/loadjsapi/?key=YOUR_API_KEY&version=API_VERSION"></script>

know that the API is on the afriGIS server? Nowhere in the 'src ' does it link back to afriGIS...
edited by jaredfish on 9/11/2009
9/11/2009 8:32:10 AM
topic: Linking script to the page.

iaan
iaan
Posts 2
Hi

You cannot host the API on your own server.
8/26/2009 7:42:28 PM
topic: Linking script to the page.

jaredfish
Posts 2
Okay, so I was wondering how the script tag now loads the javascript for the API?

<script type="text/javascript" language="javascript" src="http://YOUR_URL/loadjsapi/?key=YOUR_API_KEY&version=API_VERSION"></script>

That line (according to the getting started) would not link to afrigis at all - so how is the javascript meant to be loaded?
11/3/2008 2:37:03 PM
topic: Site with Afrigis map load very slowly in Firefox

Infinitum
Posts 1
I have noticed that my web page with the Afrigis map load very slowly in Firefox. It takes up to 3 minutes to display the page. It also does the same with the AfriGis API example pages. This only happens in Firefox and in none of the other browsers. After some research I found that the cause is related to a popular Firefox development plug-in I use called firebug. It has an option under its console to enable strict warnings, on by default, which causes this maps to load slowly. It is so bad it slows down the whole PC.

With this option disabled, the load speed is the same as in other browsers.

I hope this save someone some time and trouble.
10/1/2008 8:35:50 AM
topic: Add multiple Points from a database

byzzverr
Posts 1
Hi all!

I imagine i would need to use AddPoint(ImageSrc, ImageID, Latitude, Longitude, HorizontalOffset, VerticalOffset, Header, Description [, ClassName]) and then replace the values with variables correct?

but if possible can someone give me an example. I cant seem to get it to pick up. Also would i need to make it an OnLoad function instead of the button OnClick function in the code samples?
8/22/2008 9:31:08 AM
topic: Loading Icon sometimes not dissapearing

riaanmas
Posts 2
Just to close this issue, the API has been updated and, without going into the details of the fix implemented, the API no longer contains the Loading image.

Regards,

Riaan Mastenbroek
8/22/2008 8:22:00 AM
topic: AGMap.AddPoint Method

zs6cey
Posts 3
I got this reply, and it works perfectly.

Hi Andy,

You may use javascript like the following to create an Html element to use in the method. The object named 'divider' would be the one you send to the method (AddObject), or alternatively, you could just send the anchor object.This script should be cross-browser comaptible.

var anchorText = document.createTextNode("My Point Label");
var anchor = document.createElement("a");
var divider = document.createElement("div");
anchor.appendChild(anchorText);
anchor.setAttribute("id", "myID1");
anchor.setAttribute("href", "javascript:window.alert('This is my Label')");
var poi_image = document.createElement("img");
poi_image.setAttribute("src", "images/3Dpin.png");
anchor.appendChild(poi_image);

divider.appendChild(anchor);

Regards

Maps team
8/6/2008 1:03:20 PM
topic: AGMap.AddPoint Method

zs6cey
Posts 3
Hi Riaan,

I tried it but not luck. Here is a small part small of what I tried (in php):

$Data = '<div><img src="http://www.easytracking.co.za/Icons/car.gif"/>ND1234</div>';
echo ('imgObj = document.createElement("div");');
echo ('imgObj.src = "' . $Data . '";');
echo ('imgObj.id = "1";');
echo ('g_map.AddObject(imgObj, -30.1234, 30.1234, -10, -10);');

Any ideas?

Thanks Andy
8/5/2008 11:09:17 AM
topic: AGMap.AddPoint Method

riaanmas
Posts 2
Hi Andy,

If you want to do this I would suggest you use the "AddObject" method. Build a div tag with your image contained in it as well as the registration number. Rather send this to the API - this way you have more control and could even add your own click events etc.

riaan
6/25/2008 8:50:59 PM
topic: AGMap.AddPoint Method

zs6cey
Posts 3
Hi,

Is there a way to give text with the icon without clicking on it. The idea is if I have a car icon, I want to put the reg number so I can identify the icon on the screen when you have more than one.

Thanks
Andy
6/23/2008 12:14:46 PM
topic: Error when URL contains ' character

Lardus
Lardus
Posts 2
When the URL for the page the map is on, contains the ' character, the map api breaks.
Example URL: http://mymaps.com/custom.aspx?advertiser=tester's
This fictitios URL will cause the map to break. To fix this, the URL should be URL encoded (' becomes %27).However, not all users/developers will be aware of this. I think the API should check for the ' character in the URL.

Regards
Lardus du Plessis
5/15/2008 5:18:13 AM
topic: Disabling the right-click context menu for Routing

ashis
Posts 1
Hi Lardus,
Thanks for your thoughtful opinion. In fact, in next version you'll find a function inside AGMap class namely EnableDrivingDirectionsMenu(true|false) which will serve your requirement.

-Ashis
edited by ashis on 5/15/2008
5/13/2008 4:31:41 PM
topic: Disabling the right-click context menu for Routing

Lardus
Lardus
Posts 2
I would like to disable the right-click context menu used for routing. Will you expose a function in the API to allow for this?
5/13/2008 4:11:47 PM
topic: Loading Icon sometimes not dissapearing

admin
Posts 1
Hi Eddie

This is due to synchronous / asynchronous communation from the XmlHttpObject (AJAX). We are working on this and should be solved by the end of May.

Regards
edited by iaan on 5/13/2008
5/13/2008 4:06:12 PM
topic: Loading Icon sometimes not dissapearing

Eddie
Eddie
Posts 1
Why does the loading icon sometimes not dissapear?
5/13/2008 3:18:26 PM
topic: API Key

iaan
iaan
Posts 2
The Key is used to indetify users of the API.

The key is constructed based on the url you submit.

In the near future it will be used to validate the requests.
5/13/2008 3:09:55 PM
topic: API Key

gawie
gawie
Posts 1
What is this key used for?
pages: 1

Home » Recent messages