Click here to Skip to main content
14,330,512 members
Rate this:
Please Sign up or sign in to vote.
See more:
I'm looking at the mapkit JS maps from Apple

UPDATE: Yes its generic - as its related to the whole system using the example from their website - as reference below.
Has anyone used the mapkit JS succesfully for UK maps - without getting any errors due to weird road names?


But i'm getting a load of errors when trying to use the map over the UK

even using the example from https://developer.apple.com/maps/web/ [^]

The embeded version - it returns errors - which i think is due tot he road names.

Has anyone used this map solution for UK based maps?????

What I have tried:

I've tried the apple forum - but its not very busy.

Seen as this fails on Apples examples - i'm not hopeful
Posted
Updated 10-Oct-19 8:00am
v2
Comments
MadMyche 10-Oct-19 11:46am
   
Please use the Improve Question widget above to include the exact code you are using AND the errors that you are getting.
pokemonjohn 10-Oct-19 12:29pm
   
Why thanks - the fact that's the error is occurring on the APPLE website as well as my own code - i thought it was best to direct the question about the apple Mapkit js

and the fact that error seems to be only occurring for UK roads - probably because we have brackets in some of the names
MadMyche 10-Oct-19 12:30pm
   
Again, without knowing what data you are looking at or the error, it is impossible to answer your question
pokemonjohn 11-Oct-19 4:52am
   
Example of code.

var apple_token = [my token];
mapkit.init({
authorizationCallback: function (done) {
done(apple_token);
},
});

var map = new mapkit.Map("map_canvas", { center: new mapkit.Coordinate(54.0000, -1.1000) });
map.setCameraDistanceAnimated(30000, true);


I then get these errors:

shield:1 GET https://cdn4.apple-mapkit.com/md/v1/shield?text=A1(M)&id=2600&scale=1&overlay=00000000&v=1910104&accessKey=1570785693_50316110972973744_%2F_XZaodPvntmOPcp1IxGlQo17S9038Pw6HJ2keHz1FopY%3D 400 (Bad Request)


they only seem to appear when road names have BRACKETS in them

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100