davidsalazar / coordinate-picker

jQuery Coordinate Picker
4 stars 0 forks source link

Google Maps API error: MissingKeyMapError #6

Open niyoma opened 7 years ago

niyoma commented 7 years ago

i am using ext.coordinatepicker.CoordinatePicker it was working fine previously.But now its giving me error Google Maps API error: MissingKeyMapError please help me with it. where to add key?

davidsalazar commented 7 years ago

Try this https://stackoverflow.com/questions/37991340/error-google-maps-api-error-missingkeymaperror

On Oct 9, 2017, at 7:31 AM, niyoma notifications@github.com wrote:

i am using ext.coordinatepicker.CoordinatePicker it was working fine previously.But now its giving me error Google Maps API error: MissingKeyMapError please help me with it. where to add key?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

niyoma commented 7 years ago

@davidsalazar thanx for ur rply where should i add this? in plugin? (i am using yii framework)

davidsalazar commented 7 years ago

You have to embed the js maps api using your own api on line 9 here. This plugin is pretty much abandoned, I haven’t used this in years lol.

https://github.com/davidsalazar/coordinate-picker/blob/master/coordinate_picker/map.html https://github.com/davidsalazar/coordinate-picker/blob/master/coordinate_picker/map.html

On Oct 9, 2017, at 7:31 AM, niyoma notifications@github.com wrote:

i am using ext.coordinatepicker.CoordinatePicker it was working fine previously.But now its giving me error Google Maps API error: MissingKeyMapError please help me with it. where to add key?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/davidsalazar/coordinate-picker/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA35St2mXotWTOkiZV78skZAiYgLby-ks5sqhIhgaJpZM4PyaaU.

niyoma commented 7 years ago

@davidsalazar thnx, yes .this plugin is ababdoned.I have used it more than a year ago . I tried the solution u told me.But no luck :(

davidsalazar commented 7 years ago

what did you try? show me that file.

On Oct 10, 2017, at 6:13 AM, niyoma notifications@github.com wrote:

@davidsalazar https://github.com/davidsalazar thnx, yes .this plugin is ababdoned.I have used it more than a year ago . I tried the solution u told me.But no luck :(

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/davidsalazar/coordinate-picker/issues/6#issuecomment-335439938, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA35Sb1-EkvHvg6E5A32GDn6LopTqRpks5sq1FKgaJpZM4PyaaU.

niyoma commented 7 years ago

my code in map.html file (extensions/coordinatepicker/coordinatePicker/coordinate_picker)

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Google Map Coordinates Selector</title>
<link rel="stylesheet" href="styles/map.css" type="text/css" media="screen" title="no title" charset="utf-8"/>
<script type="text/javascript" charset="utf-8" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
 <script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAjBYB_iPKIZadTYHqxGC7pE6B6T0pRkCs&callback=initMap"

type="text/javascript">

<script src="jquery.input_hint.js" type="text/javascript" charset="utf-8"></script>
<script src="map.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="styles/map.css" type="text/css" media="screen" charset="utf-8"/>