Hi Shawn,
As Andy wrote you should follow the demo on the Mapstraction site. You must
pass the activation key in the script tag that loads the API.
<!-- Map Provider & Mapstraction Javascript includes -->
<script type="text/javascript" language="javascript"
src="http://api.maptp.map24.com/ajax?appkey=FJXe1b9e7b896f8cf70534ee0c69ecbf
X16"></script>
<script type="text/javascript"
src="mapstraction.js"></script>
<script type="text/javascript">
// initialise the map with your choice of API
var mapstraction = new
Mapstraction(''mapstraction'',''map24'');
Thanks
Michael
-----Original Message-----
From: mapstraction-bounces at lists.mapstraction.com
[mailto:mapstraction-bounces at lists.mapstraction.com] On Behalf Of Turner,
Andy
Sent: Friday, June 20, 2008 10:12 AM
To: Shankhadeep Sen
Cc: mapstraction at lists.mapstraction.com; zhou at eng.utah.edu;
vjoel at path.berkeley.edu
Subject: Re: [Mapstraction] map24 help
Just a thought (I''ve not used Map24 myself), but that doesn''t
look like
the correct way to pass the API key. Looking at the source code, the
3rd parameter of the constructor should be a boolean, saying whether or
not you want to enable debugging.
Maybe try doing it the same way as on the map24 demo page:-
http://www.mapstraction.com/demo.php?map=map24
Andy.
Shankhadeep Sen wrote:> Hi Mapstraction Experts,
>
> I am trying to do some shortest path routing for a project with
> university of utah and uc berkeley.I am trying to use the map24 api using
> the mapstraction api but i tried a lot and cant fix this error
> "Map24.loadAPI is not a function".Any help on this is greatly
> appreciated.This below is the code.(Note:mapstraction works excellent with
> google and yahoo)
>
> <div id="mapstraction" style="width: 400px; height:
400px;"></div>
>
> <script type="text/javascript"
language="javascript" src="
> http://api.map24.com/ajax/1.2.8/"></script>
>
> <script type="text/javascript"
src="mapstraction.js"></script>
>
> <script type="text/javascript">
>
> var mapstraction = new
>
Mapstraction(''mapstraction'',''map24'',''FJX534f6ceaeaf971137bc628c468279X13'');>
> var myPoint = new LatLonPoint(37.4041960114344,-122.008194923401);
>
> mapstraction.setCenterAndZoom(myPoint, 10);
>
>
> Thanks,
> Shawn
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Mapstraction mailing list
> Mapstraction at lists.mapstraction.com
> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com
_______________________________________________
Mapstraction mailing list
Mapstraction at lists.mapstraction.com
http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com